mirror of https://github.com/veops/cmdb.git
lint
This commit is contained in:
parent
21b2cc1d5d
commit
3ac50e7cd8
|
@ -159,7 +159,7 @@ export const generatorDynamicRouter = () => {
|
||||||
getPreference().then(res => {
|
getPreference().then(res => {
|
||||||
const routers = copyArray(asyncRouterMap)
|
const routers = copyArray(asyncRouterMap)
|
||||||
routers[0].children = copyArray(cmdbRouter)
|
routers[0].children = copyArray(cmdbRouter)
|
||||||
let resourceMenus = []
|
const resourceMenus = []
|
||||||
res.forEach(item => {
|
res.forEach(item => {
|
||||||
resourceMenus.push({
|
resourceMenus.push({
|
||||||
path: `/instances/types/${item.id}`,
|
path: `/instances/types/${item.id}`,
|
||||||
|
@ -168,7 +168,7 @@ export const generatorDynamicRouter = () => {
|
||||||
meta: { title: item.alias, icon: 'table', keepAlive: true, typeId: item.id },
|
meta: { title: item.alias, icon: 'table', keepAlive: true, typeId: item.id },
|
||||||
hideChildrenInMenu: true
|
hideChildrenInMenu: true
|
||||||
})
|
})
|
||||||
});
|
})
|
||||||
routers[0].children[0].children = resourceMenus
|
routers[0].children[0].children = resourceMenus
|
||||||
|
|
||||||
resolve(routers)
|
resolve(routers)
|
||||||
|
|
Loading…
Reference in New Issue