From 3b9fb37703d3437012f0acd2b1376d873e4ddbe1 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期一, 30 九月 2024 15:17:04 +0800 Subject: [PATCH] 大屏先发送一次数据请求 --- src/router/index.js | 47 +++++++++++++++++++++++++++++++++-------------- 1 files changed, 33 insertions(+), 14 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 8850356..7a8b8f5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -47,19 +47,6 @@ hidden: true }, { - path: '/car/vehicle-data-monitor', - component: Layout, - hidden: true, - children: [ - { - path: 'index', - name: 'vehicle-data-monitor', - component: () => import('@/views/system/vehicle-data-monitor/index'), - meta: { title: '杞﹁締杩囧崱鍙f暟鎹竴鑷存��', activeMenu: '/system/vehicle-data-monitor' } - } - ] - }, - { path: '/register', component: () => import('@/views/register'), hidden: true @@ -77,7 +64,7 @@ { path: '', component: Layout, - redirect: 'index', + redirect: 'screen', children: [ { path: 'index', @@ -87,6 +74,19 @@ } ] }, + // { + // path: '', + // component: Layout, + // redirect: 'index', + // children: [ + // { + // path: 'index', + // component: () => import('@/views/index'), + // name: 'Index', + // meta: { title: '棣栭〉', icon: 'dashboard', affix: true } + // } + // ] + // }, { path: '/screen', hidden: true, @@ -110,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