This commit is contained in:
xiaozhiyong
2026-05-06 10:00:13 +08:00
parent 9c5961efe9
commit a54a3bd1a9
8 changed files with 173 additions and 186 deletions

View File

@@ -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) {