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 5498c6ed
authored
Apr 24, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.6.0' of
http://192.168.3.233:8090/micro-customization-system/mi…
…cro-portal into v1.6.0
2 parents
27c0bd1c
2bfc843f
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 @
5498c6e
...
...
@@ -89,16 +89,6 @@ export default {
menuIcon
:
require
(
"@/assets/images/icon/setting-icon.png"
),
});
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
)
=>
{
...
...
@@ -172,9 +162,11 @@ export default {
cItem
.
subItemActive
=
true
;
path
=
filterPath
(
path
);
console
.
log
(
path
)
if
(
path
===
"/noData"
)
{
showEmpty
=
true
;
}
let
breadcrumb
=
[
{
name
:
pOrigin
.
menuName
,
...
...
@@ -185,6 +177,7 @@ export default {
path
:
cOrigin
.
frontRoute
,
},
];
console
.
log
(
'breadcrumb'
,
breadcrumb
)
getMenuAuth
(
cItem
.
id
,
cOrigin
.
menuName
);
store
.
dispatch
(
"app/setCommonData"
,
{
showEmpty
});
store
.
dispatch
(
"menu/setBreadCrumb"
,
breadcrumb
);
...
...
@@ -287,8 +280,10 @@ export default {
if (!path || path == "/noData") {
showEmpty = true;
}
console.log('刷新进入此处')
name && getMenuAuth(id, name);
history.pushState({ breadcrumb: curBreadcrumb }, path, path);
//v1.6.0版本临时注释,有问题 再放开
//history.pushState({ breadcrumb: curBreadcrumb }, path, path);
store.dispatch("app/setCommonData", { showEmpty });
} else {
let firstList = state.menuList[0];
...
...
src/utils/common/common.js
View file @
5498c6e
...
...
@@ -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