From c3011d06363221f4b8f1541e5789931786b2f25f Mon Sep 17 00:00:00 2001 From: li Date: Sat, 14 Mar 2026 19:51:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20H5=20vite=20base=3D/wkb/=20+=20router=20?= =?UTF-8?q?history=20base=EF=BC=8C=E4=BF=AE=E5=A4=8D=E5=AD=90=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E9=83=A8=E7=BD=B2=E8=B5=84=E6=BA=90=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/router/index.js | 2 +- client/vite.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/router/index.js b/client/src/router/index.js index 45dac62..6471a3b 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -85,7 +85,7 @@ const routes = [ ] const router = createRouter({ - history: createWebHistory(), + history: createWebHistory('/wkb/'), routes, }) diff --git a/client/vite.config.js b/client/vite.config.js index 0a4936a..366eb73 100644 --- a/client/vite.config.js +++ b/client/vite.config.js @@ -3,6 +3,7 @@ import vue from '@vitejs/plugin-vue' import { fileURLToPath, URL } from 'node:url' export default defineConfig({ + base: '/wkb/', plugins: [vue()], resolve: { alias: {