From 1ad665ca9d7d4b3942b38eb9f6f7dfa095d414e8 Mon Sep 17 00:00:00 2001 From: pingtianxia Date: Sun, 12 Nov 2023 21:42:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3vite=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=BA=86base,=E5=AF=BC=E8=87=B4=E9=A1=B5=E9=9D=A2=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=89=93=E5=BC=80=E7=9A=84bug,=E5=AD=90=E7=90=86?= =?UTF-8?q?=E7=94=B1=E8=A2=AB=E9=87=8D=E5=AE=9A=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.ts b/src/router/index.ts index 8f66ca31f..b818421c2 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -5,7 +5,7 @@ import remainingRouter from './modules/remaining' // 创建路由实例 const router = createRouter({ - history: createWebHistory(), // createWebHashHistory URL带#,createWebHistory URL不带# + history: createWebHistory(import.meta.env.VITE_BASE_PATH), // createWebHashHistory URL带#,createWebHistory URL不带# strict: true, routes: remainingRouter as RouteRecordRaw[], scrollBehavior: () => ({ left: 0, top: 0 }) -- Gitee