mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-06-21 17:30:13 +08:00
Fix H5 all-in-one asset paths
This commit is contained in:
@@ -7,15 +7,15 @@ const localImBase = process.env.VUE_APP_IM_API_BASE_URL || localApiBase;
|
||||
|
||||
// 开发环境优先读取一键启动脚本生成的 .env.development.local。
|
||||
const dev = {
|
||||
im: localImBase || "https://im-api.pickmall.cn",
|
||||
common: localApiBase || "https://common-api.pickmall.cn",
|
||||
buyer: localApiBase || "https://buyer-api.pickmall.cn",
|
||||
im: localImBase || "/api",
|
||||
common: localApiBase || "/api",
|
||||
buyer: localApiBase || "/api",
|
||||
};
|
||||
// 生产环境保持原有线上默认值,构建时也允许通过环境变量显式覆盖。
|
||||
// 生产环境默认走 All-In-One 同域入口,构建时仍允许通过环境变量显式覆盖。
|
||||
const prod = {
|
||||
im: localImBase || "https://im-api.pickmall.cn",
|
||||
common: localApiBase || "https://common-api.pickmall.cn",
|
||||
buyer: localApiBase || "https://buyer-api.pickmall.cn",
|
||||
im: localImBase || "/api",
|
||||
common: localApiBase || "/api",
|
||||
buyer: localApiBase || "/api",
|
||||
};
|
||||
|
||||
//默认生产环境
|
||||
|
||||
Reference in New Issue
Block a user