From 70a87a18cca12dd0e43360f91a5be9754dc4cb37 Mon Sep 17 00:00:00 2001 From: gaosp <gaosp> Date: 星期五, 12 一月 2024 00:25:55 +0800 Subject: [PATCH] 1 --- src/router/index.js | 42 ++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 40 insertions(+), 2 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index e297822..ef8dcac 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -26,6 +26,44 @@ { 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: 'workshop/:id', + name: 'workshop', + component: () => import('@/container/workshop/index') + }, + // 璁惧缁存姢 + { + path: 'maintenance/:id', + 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: '/dashboard', component: Layout, @@ -380,8 +418,8 @@ ] export default new Router({ - mode: 'history', - base: '/mdc/', + mode: 'hash', + base: '/', scrollBehavior: () => ({ y: 0 }), routes: constantRouterMap }) -- Gitblit v1.9.3