From 02a8a0536d535a0826cf6ad0146b7cd4f9b712f1 Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Fri, 15 Sep 2023 00:03:16 +0800
Subject: [PATCH] 路由更换为hash模式
---
src/router/index.ts | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/router/index.ts b/src/router/index.ts
index a09e654..389fd64 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'
@@ -9,7 +9,7 @@
const routes: Array<RouteRecordRaw> = [
{
path: '/',
- redirect: '/' + ERouterName.LOGIN
+ redirect: '/' + ERouterName.PROJECT_LIST
},
// // 首页 登陆页面
{
@@ -158,7 +158,7 @@
]
const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
+ history: createWebHashHistory(import.meta.env.BASE_URL),
routes
})
--
Gitblit v1.9.3