Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-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
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1e074c21
authored
Dec 04, 2020
by
冒粤蓉
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
improve menu
1 parent
5c740f5e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
20 deletions
src/components/DesktopLeftSider/Sub/Menu.vue
src/config/menuTree.js
src/micro/index.js
src/components/DesktopLeftSider/Sub/Menu.vue
View file @
1e074c2
...
@@ -110,7 +110,7 @@ export default {
...
@@ -110,7 +110,7 @@ export default {
}
}
const
filterPath
=
(
path
)
=>
{
const
filterPath
=
(
path
)
=>
{
return
path
&&
path
.
includes
(
'system'
)
?
path
:
'/noData'
;
return
path
&&
(
path
.
includes
(
'system'
)
||
path
.
includes
(
'monitor'
)
)
?
path
:
'/noData'
;
}
}
// 存储面包屑
// 存储面包屑
...
...
src/config/menuTree.js
View file @
1e074c2
...
@@ -5,24 +5,6 @@
...
@@ -5,24 +5,6 @@
const
menuTree
=
[
const
menuTree
=
[
{
{
origin
:
{
origin
:
{
menuName
:
"设备管理"
,
menuNo
:
201
,
type
:
1
,
icon
:
'CarOutlined'
},
children
:
[
{
origin
:
{
menuName
:
"ODB管理"
,
menuNo
:
20101
,
type
:
2
,
path
:
''
}
}
]
},
{
origin
:
{
menuName
:
"系统管理"
,
menuName
:
"系统管理"
,
menuNo
:
101
,
menuNo
:
101
,
type
:
1
,
type
:
1
,
...
@@ -79,6 +61,22 @@ const menuTree = [
...
@@ -79,6 +61,22 @@ const menuTree = [
},
},
]
]
},
{
origin
:
{
menuName
:
"数据风控"
,
menuNo
:
201
,
type
:
1
,
icon
:
'DesktopOutlined'
},
children
:
[
{
menuName
:
"渠道风控"
,
menuNo
:
20101
,
type
:
2
,
path
:
'/monitor#/channel'
}
]
}
}
]
]
...
...
src/micro/index.js
View file @
1e074c2
...
@@ -29,6 +29,14 @@ const qianKunStart = (config, baseURL) => {
...
@@ -29,6 +29,14 @@ const qianKunStart = (config, baseURL) => {
}
}
};
};
apps
[
1
].
props
=
{
data
:
{
store
,
router
,
baseURL
}
};
registerMicroApps
(
apps
,
{
registerMicroApps
(
apps
,
{
// qiankun 生命周期钩子 - 加载前
// qiankun 生命周期钩子 - 加载前
beforeLoad
:
(
app
)
=>
{
beforeLoad
:
(
app
)
=>
{
...
@@ -59,7 +67,7 @@ const qianKunStart = (config, baseURL) => {
...
@@ -59,7 +67,7 @@ const qianKunStart = (config, baseURL) => {
setDefaultMountApp
(
defaultApp
);
setDefaultMountApp
(
defaultApp
);
start
();
start
(
{
singular
:
false
}
);
}
}
...
...
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