Commit 1e074c21 by 冒粤蓉

improve menu

1 parent 5c740f5e
......@@ -110,7 +110,7 @@ export default {
}
const filterPath = (path) => {
return path && path.includes('system') ? path : '/noData';
return path && (path.includes('system') || path.includes('monitor')) ? path : '/noData';
}
// 存储面包屑
......
......@@ -5,24 +5,6 @@
const menuTree = [
{
origin: {
menuName: "设备管理",
menuNo: 201,
type: 1,
icon: 'CarOutlined'
},
children: [
{
origin: {
menuName: "ODB管理",
menuNo: 20101,
type: 2,
path: ''
}
}
]
},
{
origin: {
menuName: "系统管理",
menuNo: 101,
type: 1,
......@@ -79,6 +61,22 @@ const menuTree = [
},
]
},
{
origin: {
menuName: "数据风控",
menuNo: 201,
type: 1,
icon: 'DesktopOutlined'
},
children: [
{
menuName: "渠道风控",
menuNo: 20101,
type: 2,
path: '/monitor#/channel'
}
]
}
]
......
......@@ -29,6 +29,14 @@ const qianKunStart = (config, baseURL) => {
}
};
apps[1].props = {
data: {
store,
router,
baseURL
}
};
registerMicroApps(apps, {
// qiankun 生命周期钩子 - 加载前
beforeLoad: (app) => {
......@@ -59,7 +67,7 @@ const qianKunStart = (config, baseURL) => {
setDefaultMountApp(defaultApp);
start();
start({ singular: false });
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!