更新
This commit is contained in:
@@ -115,16 +115,16 @@ const setupRouter = async (userStore) => {
|
||||
// 扁平化:将 layout.children 与其余顶层异步路由一并作为二级子路由注册到 layout 下
|
||||
const toRegister = []
|
||||
if (layoutRoute?.children?.length) {
|
||||
layoutRoute.children.unshift({
|
||||
path: '/largeScreen2',
|
||||
name: 'largeScreen2',
|
||||
meta: {
|
||||
title: '数据大屏',
|
||||
icon: 'data-analysis',
|
||||
defaultMenu: true
|
||||
},
|
||||
component: () => import('@/view/largeScreen2/index.vue')
|
||||
})
|
||||
// layoutRoute.children.unshift({
|
||||
// path: '/largeScreen2',
|
||||
// name: 'largeScreen2',
|
||||
// meta: {
|
||||
// title: '数据大屏',
|
||||
// icon: 'data-analysis',
|
||||
// defaultMenu: true
|
||||
// },
|
||||
// component: () => import('@/view/largeScreen2/index.vue')
|
||||
// })
|
||||
toRegister.push(...layoutRoute.children)
|
||||
}
|
||||
if (baseRouters.length > 1) {
|
||||
|
||||
Reference in New Issue
Block a user