fix: h5
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 1m0s

This commit is contained in:
luo
2026-07-03 10:20:09 +08:00
parent 1f058b3f4d
commit 8cb820c9f9
2 changed files with 3 additions and 2 deletions

2
env/.env.test vendored
View File

@@ -2,7 +2,7 @@
VITE_APP_ENV=staging
# 接口地址
VITE_API_BASE_URL=https://cmp-api.xm-iot.cn
VITE_API_BASE_URL=https://cmp-api.boss160.cn
# 是否使用代理 (测试环境不使用代理)
VITE_APP_PROXY=false

View File

@@ -17,8 +17,9 @@ export default defineConfig(({ command, mode }): UserConfig => {
console.log('环境变量 env -> ', env);
const isBuild = process.env.NODE_ENV === 'production';
const base = ['development', 'test'].includes(mode) ? '/h5/' : '/';
return {
base: '/h5/',
base,
// 自定义env目录
envDir: './env',
resolve: {