Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mingPayPc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fengzhaoyu
mingPayPc
Commits
999da0f8
Commit
999da0f8
authored
Dec 07, 2019
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
router 判断
parent
f53fcc72
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Home.vue
src/components/common/Home.vue
+2
-0
No files found.
src/components/common/Home.vue
View file @
999da0f8
...
@@ -54,6 +54,7 @@ export default {
...
@@ -54,6 +54,7 @@ export default {
$http
.
post
(
'/admin/menu/user'
,
data
).
then
(
res
=>
{
$http
.
post
(
'/admin/menu/user'
,
data
).
then
(
res
=>
{
const
result
=
that
.
getSelectList
(
res
.
data
.
data
)
const
result
=
that
.
getSelectList
(
res
.
data
.
data
)
store
.
dispatch
(
'setMenuList'
,
that
.
selectList
)
store
.
dispatch
(
'setMenuList'
,
that
.
selectList
)
console
.
log
(
that
.
selectList
)
})
})
config
.
ddconfig
()
config
.
ddconfig
()
},
},
...
@@ -69,6 +70,7 @@ export default {
...
@@ -69,6 +70,7 @@ export default {
this
.
$router
.
push
({
name
:
obj
.
key
})
this
.
$router
.
push
({
name
:
obj
.
key
})
},
},
getSelectList
(
data
)
{
getSelectList
(
data
)
{
console
.
log
(
data
,
'12313123'
)
let
that
=
this
let
that
=
this
const
addKey
=
data
=>
data
.
map
(
item
=>
{
const
addKey
=
data
=>
data
.
map
(
item
=>
{
if
(
item
.
children
.
length
>
0
)
{
if
(
item
.
children
.
length
>
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment