This commit is contained in:
lik
2026-11-06 20:59:45 +08:00
parent bfe451104d
commit 2f397b9fda
6 changed files with 54 additions and 3 deletions
+4 -2
View File
@@ -7,7 +7,9 @@ import Components from 'unplugin-vue-components/vite'
import { BootstrapVueNextResolver } from 'bootstrap-vue-next'
// https://vite.dev/config/
export default defineConfig({
export default defineConfig(({ command }) => ({
// 线上部署在 https://escort.huashengtec.com/admin/,本地开发仍保持根路径
base: command === 'build' ? '/admin/' : '/',
plugins: [
vue(),
vueDevTools(),
@@ -32,4 +34,4 @@ export default defineConfig({
},
},
},
})
}))