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 | 50 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 47 insertions(+), 3 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index d3468e6..b79cfb8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -27,18 +27,62 @@ // { path: '/login', component: () => import('@/views/login/index'), hidden: true }, // 棣栭〉 { path: '/home', - component: () => import('@/views/home/index'), + component: () => import('@/container/home/index'), children: [ { path: 'index', name: 'index', - component: () => import('@/views/home/Welcome') + 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') + }, ] }, { -- Gitblit v1.9.3