fix: admin console support non-root path deployment

- Set vite base to /admin/ (configurable via PUBLIC_PATH env var)
- Add h5 router base in manifest.json for subdirectory deployment
这个提交包含在:
Guoguo
2026-05-06 06:12:39 -07:00
父节点 563e515bce
当前提交 2f6ab74eab
修改 2 个文件,包含 3 行新增1 行删除
+2 -1
查看文件
@@ -7,7 +7,8 @@
"h5": {
"title": "光子美容仪后台",
"router": {
"mode": "hash"
"mode": "hash",
"base": "/admin/"
}
}
}
+1
查看文件
@@ -2,5 +2,6 @@ import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
export default defineConfig({
base: process.env.PUBLIC_PATH || '/admin/',
plugins: [uni()]
})