Skip to content

Commit cd91f18

Browse files
committed
feat(router): add mobile detail route for CI in CMDB module
1 parent ca4b786 commit cd91f18

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

cmdb-ui/src/modules/cmdb/router/index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,16 @@ const genCmdbRoutes = async () => {
185185
}
186186
}
187187

188-
return routes
188+
return [
189+
routes,
190+
{
191+
path: '/cmdb/mobile/:typeId/:ciId',
192+
name: 'cmdb_mobile_detail',
193+
hidden: true,
194+
meta: { title: 'cmdb.ci.mobileDetail' },
195+
component: () => import('../views/mobile/CIMobileDetail.vue'),
196+
}
197+
]
189198
}
190199

191200
export default genCmdbRoutes

cmdb-ui/src/router/config.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,6 @@ export const constantRouterMap = [
103103
redirect: appConfig.redirectTo,
104104
// redirect: () => { return store.getters.appRoutes[0] },
105105
},
106-
{
107-
path: '/cmdb/mobile/:typeId/:ciId',
108-
name: 'cmdb_mobile_detail',
109-
hidden: true,
110-
meta: { title: 'cmdb.ci.mobileDetail' },
111-
component: () => import(/* webpackChunkName: "mobile" */ '@/modules/cmdb/views/mobile/CIMobileDetail.vue')
112-
},
113106
{
114107
path: '/user/login',
115108
name: 'login',

0 commit comments

Comments
 (0)