From 9b0fb6cf78f190a863d5f74f351201b8a28f911d Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期六, 31 八月 2024 17:44:17 +0800 Subject: [PATCH] 平台管理优化 --- src/router/index.js | 41 +++++++++++++++++++++++++++++++++++++++-- 1 files changed, 39 insertions(+), 2 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index d43a54e..7a8b8f5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -64,15 +64,33 @@ { path: '', component: Layout, - redirect: 'index', + redirect: 'screen', children: [ { path: 'index', -// component: () => import('@/views/index'), + component: () => import('@/views/index'), name: 'Index', meta: { title: '棣栭〉', icon: 'dashboard', affix: true } } ] + }, + // { + // path: '', + // component: Layout, + // redirect: 'index', + // children: [ + // { + // path: 'index', + // component: () => import('@/views/index'), + // name: 'Index', + // meta: { title: '棣栭〉', icon: 'dashboard', affix: true } + // } + // ] + // }, + { + path: '/screen', + hidden: true, + component: () => import('@/views/screen/index'), }, { path: '/user', @@ -92,6 +110,25 @@ // 鍔ㄦ�佽矾鐢憋紝鍩轰簬鐢ㄦ埛鏉冮檺鍔ㄦ�佸幓鍔犺浇 export const dynamicRoutes = [ + + { + path: '/data-manage/data-detail', + component: Layout, + hidden: true, + permissions: ['data:manage:detail'], + children: [ + { + path: 'index/:type/:typeId', + component: () => import('@/views/system/data-manage/data-detail'), + name: 'DataDetail', + meta: { + title: '鏁版嵁璇︽儏', + activeMenu: '/data-manage' + } + } + ] + }, + { path: '/system/user-auth', component: Layout, -- Gitblit v1.8.0