Images are served from MinIO directly, not through /prod-api proxy. Add imageBaseUrl to config and use it in fixImageUrl() and WXML templates. This fixes images not loading on order list and detail pages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
427 B
JavaScript
12 lines
427 B
JavaScript
// 环境配置 - 切换环境只需修改此文件
|
||
const config = {
|
||
// 开发环境(本地后端,需改为本机IP)
|
||
// baseUrl: 'http://192.168.1.100:8039',
|
||
// 生产环境(通过 nginx 代理,HTTPS + 域名)
|
||
baseUrl: 'https://ruilaizipj.com/prod-api',
|
||
// 图片/文件访问基地址(不走 /prod-api 代理,MinIO 直接访问)
|
||
imageBaseUrl: 'https://ruilaizipj.com',
|
||
}
|
||
|
||
module.exports = config
|