fix:h5时base配置问题

This commit is contained in:
刘琦
2025-06-27 18:05:06 +08:00
committed by GitHub
parent c115c5fc3e
commit 934ba914ec
2 changed files with 3 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ export default defineManifestConfig({
'locale': VITE_FALLBACK_LOCALE, // 'zh-Hans'
'h5': {
router: {
base: VITE_APP_PUBLIC_BASE,
// base: VITE_APP_PUBLIC_BASE,
},
},
/* 5+App特有相关 */

View File

@@ -50,12 +50,13 @@ export default async ({ command, mode }) => {
VITE_SHOW_SOURCEMAP,
VITE_APP_PROXY,
VITE_APP_PROXY_PREFIX,
VITE_APP_PUBLIC_BASE
} = env
console.log('环境变量 env -> ', env)
return defineConfig({
envDir: './env', // 自定义env目录
base: VITE_APP_PUBLIC_BASE,
plugins: [
UniPages({
exclude: ['**/components/**/**.*'],