From f466ae4fdc645c66c9f25e2e4598b9809e2b41af Mon Sep 17 00:00:00 2001 From: yangys <y_ys79@sina.com> Date: 星期六, 13 一月 2024 22:56:49 +0800 Subject: [PATCH] Merge branch 'master' of http://www.beijingsoft.cn:9090/r/mdc-front --- src/router/index.js | 48 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 46 insertions(+), 2 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index e297822..b111ec8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -26,6 +26,50 @@ { 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/: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: '/dashboard', component: Layout, @@ -380,8 +424,8 @@ ] export default new Router({ - mode: 'history', - base: '/mdc/', + mode: 'hash', + base: '/', scrollBehavior: () => ({ y: 0 }), routes: constantRouterMap }) -- Gitblit v1.9.3