Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c7da60a5
authored
Jun 04, 2021
by
冒粤蓉
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
3760ec89
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
src/components/DesktopLeftSider/Sub/Menu.vue
src/components/DesktopLeftSider/Sub/Menu.vue
View file @
c7da60a
...
@@ -209,12 +209,10 @@ export default {
...
@@ -209,12 +209,10 @@ export default {
// 初始化操作
// 初始化操作
let
showEmpty
=
false
;
let
showEmpty
=
false
;
// 同步激活样式
if
(
curBreadcrumb
)
{
if
(
curBreadcrumb
)
{
curBreadcrumb
=
JSON
.
parse
(
curBreadcrumb
);
curBreadcrumb
=
JSON
.
parse
(
curBreadcrumb
);
}
// 同步激活样式
resData
.
forEach
((
item
)
=>
{
resData
.
forEach
((
item
)
=>
{
if
(
curBreadcrumb
)
{
const
{
menuName
:
pMenuName
}
=
item
.
origin
;
const
{
menuName
:
pMenuName
}
=
item
.
origin
;
item
.
showSubList
=
pMenuName
===
curBreadcrumb
[
0
].
name
;
item
.
showSubList
=
pMenuName
===
curBreadcrumb
[
0
].
name
;
item
.
children
.
forEach
((
cItem
,
cIndex
)
=>
{
item
.
children
.
forEach
((
cItem
,
cIndex
)
=>
{
...
@@ -224,8 +222,8 @@ export default {
...
@@ -224,8 +222,8 @@ export default {
curBreadcrumb
[
1
].
id
=
cItem
.
id
;
curBreadcrumb
[
1
].
id
=
cItem
.
id
;
}
}
})
})
}
});
});
}
if
(
isInit
&&
curBreadcrumb
)
{
if
(
isInit
&&
curBreadcrumb
)
{
let
thisBread
=
curBreadcrumb
[
curBreadcrumb
.
length
-
1
];
let
thisBread
=
curBreadcrumb
[
curBreadcrumb
.
length
-
1
];
...
@@ -255,7 +253,9 @@ export default {
...
@@ -255,7 +253,9 @@ export default {
if
(
!
cOrigin
.
frontRoute
||
cOrigin
.
frontRoute
==
'/noData'
)
{
if
(
!
cOrigin
.
frontRoute
||
cOrigin
.
frontRoute
==
'/noData'
)
{
showEmpty
=
true
;
showEmpty
=
true
;
};
};
name
&&
getMenuAuth
(
firstList
.
children
[
0
].
id
,
cOrigin
.
menuName
);
firstList
.
showSubList
=
true
;
firstList
.
children
[
0
].
subItemActive
=
true
;
cOrigin
.
menuName
&&
getMenuAuth
(
firstList
.
children
[
0
].
id
,
cOrigin
.
menuName
);
history
.
pushState
({
breadcrumb
},
cOrigin
.
frontRoute
,
cOrigin
.
frontRoute
);
history
.
pushState
({
breadcrumb
},
cOrigin
.
frontRoute
,
cOrigin
.
frontRoute
);
store
.
dispatch
(
'app/setCommonData'
,
{
showEmpty
});
store
.
dispatch
(
'app/setCommonData'
,
{
showEmpty
});
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment