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 2bfc843f
authored
Apr 13, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
v1.6.0版本需求
1 parent
1951bcf0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
src/components/DesktopLeftSider/Sub/Menu.vue
src/utils/common/common.js
src/components/DesktopLeftSider/Sub/Menu.vue
View file @
2bfc843
...
@@ -89,16 +89,6 @@ export default {
...
@@ -89,16 +89,6 @@ export default {
menuIcon
:
require
(
"@/assets/images/icon/setting-icon.png"
),
menuIcon
:
require
(
"@/assets/images/icon/setting-icon.png"
),
});
});
console
.
log
(
store
.
state
)
console
.
log
(
store
.
state
)
watch
(()
=>
store
.
state
.
menu
.
updateMenu
,
(
n
,
o
)
=>
{
console
.
log
(
"监听菜单更新"
);
console
.
log
(
n
);
if
(
n
){
//getMenuAuth()
}
},{
immediate
:
true
,
deep
:
true
});
// 点击主菜单标题
// 点击主菜单标题
const
titleClick
=
(
item
,
idx
)
=>
{
const
titleClick
=
(
item
,
idx
)
=>
{
...
@@ -172,9 +162,11 @@ export default {
...
@@ -172,9 +162,11 @@ export default {
cItem
.
subItemActive
=
true
;
cItem
.
subItemActive
=
true
;
path
=
filterPath
(
path
);
path
=
filterPath
(
path
);
console
.
log
(
path
)
if
(
path
===
"/noData"
)
{
if
(
path
===
"/noData"
)
{
showEmpty
=
true
;
showEmpty
=
true
;
}
}
let
breadcrumb
=
[
let
breadcrumb
=
[
{
{
name
:
pOrigin
.
menuName
,
name
:
pOrigin
.
menuName
,
...
@@ -185,6 +177,7 @@ export default {
...
@@ -185,6 +177,7 @@ export default {
path
:
cOrigin
.
frontRoute
,
path
:
cOrigin
.
frontRoute
,
},
},
];
];
console
.
log
(
'breadcrumb'
,
breadcrumb
)
getMenuAuth
(
cItem
.
id
,
cOrigin
.
menuName
);
getMenuAuth
(
cItem
.
id
,
cOrigin
.
menuName
);
store
.
dispatch
(
"app/setCommonData"
,
{
showEmpty
});
store
.
dispatch
(
"app/setCommonData"
,
{
showEmpty
});
store
.
dispatch
(
"menu/setBreadCrumb"
,
breadcrumb
);
store
.
dispatch
(
"menu/setBreadCrumb"
,
breadcrumb
);
...
@@ -287,8 +280,10 @@ export default {
...
@@ -287,8 +280,10 @@ export default {
if (!path || path == "/noData") {
if (!path || path == "/noData") {
showEmpty = true;
showEmpty = true;
}
}
console.log('刷新进入此处')
name && getMenuAuth(id, name);
name && getMenuAuth(id, name);
history.pushState({ breadcrumb: curBreadcrumb }, path, path);
//v1.6.0版本临时注释,有问题 再放开
//history.pushState({ breadcrumb: curBreadcrumb }, path, path);
store.dispatch("app/setCommonData", { showEmpty });
store.dispatch("app/setCommonData", { showEmpty });
} else {
} else {
let firstList = state.menuList[0];
let firstList = state.menuList[0];
...
...
src/utils/common/common.js
View file @
2bfc843
...
@@ -101,6 +101,9 @@ export const Common = {
...
@@ -101,6 +101,9 @@ export const Common = {
},
},
// 公共页面跳转方法
// 公共页面跳转方法
navigateTo
:
function
(
options
){
}
}
}
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