From 07907a65daef5f8b624a8b081eebe6fbc1abcbb5 Mon Sep 17 00:00:00 2001 From: gaosp <gaosp> Date: 星期二, 16 一月 2024 20:23:42 +0800 Subject: [PATCH] update --- src/router/index.js | 63 ++++++++++++++++++++++++++++++- 1 files changed, 61 insertions(+), 2 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index e297822..b79cfb8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -26,6 +26,65 @@ { path: '/', component: () => import('@/views/login/index'), hidden: true }, // { path: '/login', component: () => import('@/views/login/index'), hidden: true }, // 棣栭〉 + { path: '/home', + component: () => import('@/container/home/index'), + children: [ + { + path: 'index', + name: 'index', + component: () => import('@/container/home/Welcome') + }, + { + path: 'map', + name: 'map', + component: () => import('@/container/Map/index') + }, + { + path: 'mapPreview', + name: 'mapPreview', + component: () => import('@/container/mapPreview/index') + }, + { + path: 'workshop/:id', + name: 'workshop', + component: () => import('@/container/workshop/index') + }, + // 璁惧缁存姢 + { + path: 'maintenance/:style', + name: 'maintenance', + component: () => import('@/container/maintenance/index') + }, + // 宸ヤ欢淇℃伅 + { + path: 'component', + name: 'component', + component: () => import('@/container/component/index') + }, + // 鍙拌处 + { + path: 'ledger', + name: 'ledger', + component: () => import('@/container/ledger/index') + }, + // 璁惧绫诲瀷绠$悊 + { + path: 'deviceType', + name: 'deviceType', + component: () => import('@/container/deviceType/index') + }, + { + path: 'machineList', + name: 'machineList', + component: () => import('@/container/machineList/index') + }, + { + path: 'preview', + name: 'preview', + component: () => import('@/container/preview/index') + }, + ] + }, { path: '/dashboard', component: Layout, @@ -380,8 +439,8 @@ ] export default new Router({ - mode: 'history', - base: '/mdc/', + mode: 'hash', + base: '/', scrollBehavior: () => ({ y: 0 }), routes: constantRouterMap }) -- Gitblit v1.9.3