Forráskód Böngészése

修正 admin-h5 部署路径适配 /admin context-path

- 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>
skyline 1 napja
szülő
commit
4c2491e5b6
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      admin-h5/src/manifest.json
  2. 1 1
      admin-h5/vite.config.js

+ 1 - 1
admin-h5/src/manifest.json

@@ -18,7 +18,7 @@
         "usingComponents" : true,
         "router" : {
             "mode" : "hash",
-            "base" : "/h5/"
+            "base" : "/admin/h5/"
         },
         "title" : "自助洗车运营管理",
         "domain" : "",

+ 1 - 1
admin-h5/vite.config.js

@@ -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'