fix: support cms subpath deployment

This commit is contained in:
王天骄
2026-06-05 16:54:48 +08:00
parent d97be506ce
commit 6e6d54e614
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ const routes: RouteRecordRaw[] = [
]
const router = createRouter({
history: createWebHistory(),
history: createWebHistory(import.meta.env.BASE_URL),
routes,
scrollBehavior: () => ({ top: 0 })
})
+1
View File
@@ -3,6 +3,7 @@ import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
base: '/cms/',
plugins: [vue()],
resolve: {
alias: {