From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期三, 16 十月 2024 15:59:38 +0800 Subject: [PATCH] 代码初始化 --- screen/src/router/index.js | 27 +++++++++++++++++++++++---- 1 files changed, 23 insertions(+), 4 deletions(-) diff --git a/screen/src/router/index.js b/screen/src/router/index.js index 2d19a63..c56a2b5 100644 --- a/screen/src/router/index.js +++ b/screen/src/router/index.js @@ -1,13 +1,32 @@ import { createRouter, createWebHashHistory } from 'vue-router' -import HomeView from '../views/HomeView.vue' +import HomeView from '../views/PlatformCall.vue' const router = createRouter({ - history: createWebHashHistory(import.meta.env.BASE_URL), + history: createWebHashHistory(), routes: [ { path: '/', - name: 'home', - component: HomeView + component: () => import('../views/LogisticsEfficiency.vue') + }, + { + path: '/PlatformCall', + name: 'PlatformCall', + component: () => import('../views/PlatformCall.vue') + }, + { + path: '/EnergyConsum', + name: 'EnergyConsum', + component: () => import('../views/EnergyConsum.vue') + }, + { + path: '/LogisticsControl', + name: 'LogisticsControl', + component: () => import('../views/LogisticsEfficiency.vue') + }, + { + path: '/SecurityControl', + name: 'SecurityControl', + component: () => import('../views/SecurityControl.vue') }, ] }) -- Gitblit v1.9.3