From 3ac50e7cd8820d78947d87a8b84afd0889b41466 Mon Sep 17 00:00:00 2001 From: pycook Date: Fri, 21 Feb 2020 22:46:12 +0800 Subject: [PATCH] lint --- cmdb-ui/src/config/router.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmdb-ui/src/config/router.config.js b/cmdb-ui/src/config/router.config.js index 6ee743e..c0a15e6 100644 --- a/cmdb-ui/src/config/router.config.js +++ b/cmdb-ui/src/config/router.config.js @@ -159,7 +159,7 @@ export const generatorDynamicRouter = () => { getPreference().then(res => { const routers = copyArray(asyncRouterMap) routers[0].children = copyArray(cmdbRouter) - let resourceMenus = [] + const resourceMenus = [] res.forEach(item => { resourceMenus.push({ path: `/instances/types/${item.id}`, @@ -168,7 +168,7 @@ export const generatorDynamicRouter = () => { meta: { title: item.alias, icon: 'table', keepAlive: true, typeId: item.id }, hideChildrenInMenu: true }) - }); + }) routers[0].children[0].children = resourceMenus resolve(routers)