- vite.config.js:base 从 /h5/ 改为 /admin/h5/,与 Spring Boot context-path 对齐 - manifest.json:router base 同步更新为 /admin/h5/ Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@@ -18,7 +18,7 @@
"usingComponents" : true,
"router" : {
"mode" : "hash",
- "base" : "/h5/"
+ "base" : "/admin/h5/"
},
"title" : "自助洗车运营管理",
"domain" : "",
@@ -5,7 +5,7 @@ export default defineConfig(({ command, mode }) => {
const isBuild = command === 'build'
return {
- base: isBuild ? '/h5/' : './',
+ base: isBuild ? '/admin/h5/' : './',
plugins: [uni()],
build: {
outDir: '../car-wash-admin/src/main/resources/static/h5'