From f27ca082eb0a839449dd50c49007b58e5ed6946f Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 19 Jun 2025 19:08:01 +0800
Subject: [PATCH] feat: 服务名修改
---
src/router/index.ts | 36 ++++++++++++++++++++++++++----------
1 files changed, 26 insertions(+), 10 deletions(-)
diff --git a/src/router/index.ts b/src/router/index.ts
index 7db93c4..cf24b68 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -1,4 +1,4 @@
-import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
+import { createRouter, createWebHistory, RouteRecordRaw, createWebHashHistory } from 'vue-router'
import { ERouterName } from '/@/types/index'
import CreatePlan from '/@/components/task/CreatePlan.vue'
import WaylinePanel from '/@/pages/page-web/projects/wayline.vue'
@@ -11,12 +11,19 @@
path: '/',
redirect: '/' + ERouterName.LOGIN
},
- // 首页 登陆页面
+ // // 首页 登陆页面
+ {
+ path: '/' + ERouterName.PILOT,
+ name: ERouterName.PILOT,
+ component: () => import('/@/pages/page-pilot/pilot-index.vue')
+ },
+
{
path: '/' + ERouterName.LOGIN,
name: ERouterName.LOGIN,
component: () => import('/@/pages/page-web/index.vue')
},
+
// members, devices
{
path: '/' + ERouterName.HOME,
@@ -27,11 +34,6 @@
path: '/' + ERouterName.MEMBERS,
name: ERouterName.MEMBERS,
component: () => import('/@/pages/page-web/projects/members.vue')
- },
- {
- path: '/' + ERouterName.DEVICES,
- name: ERouterName.DEVICES,
- component: () => import('/@/pages/page-web/projects/devices.vue')
},
// 项目列表
{
@@ -89,7 +91,10 @@
{
path: '/' + ERouterName.MEDIA,
name: ERouterName.MEDIA,
- component: () => import('/@/pages/page-web/projects/media.vue')
+ component: () => import('/@/pages/page-web/projects/media.vue'),
+ meta: {
+ hidden: true
+ }
},
{
path: '/' + ERouterName.WAYLINE,
@@ -118,7 +123,18 @@
}
]
- }
+ },
+
+ {
+ path: '/' + ERouterName.IMPLEMENT,
+ name: ERouterName.IMPLEMENT,
+ component: () => import('/@/pages/page-web/projects/implement.vue')
+ },
+ {
+ path: '/' + ERouterName.ROUTE_HISTORY,
+ name: ERouterName.ROUTE_HISTORY,
+ component: () => import('/@/pages/page-web/projects/routeLine.vue')
+ },
],
meta: {
header: false
@@ -158,7 +174,7 @@
]
const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
+ history: createWebHashHistory(import.meta.env.BASE_URL),
routes
})
--
Gitblit v1.9.3