|
@@ -13,13 +13,13 @@ const PROD_CONFIG = {
|
|
|
|
|
|
|
|
// 开发环境配置
|
|
// 开发环境配置
|
|
|
const DEV_CONFIG = {
|
|
const DEV_CONFIG = {
|
|
|
- // 开发模式(PC浏览器)
|
|
|
|
|
|
|
+ // 开发模式(PC浏览器)- 需加 /api 以匹配 Vite 代理
|
|
|
web: '/api',
|
|
web: '/api',
|
|
|
// 安卓真机 - 使用真实域名测试
|
|
// 安卓真机 - 使用真实域名测试
|
|
|
android: 'https://book.rrbrr.com/api',
|
|
android: 'https://book.rrbrr.com/api',
|
|
|
// iOS 真机 - 使用真实域名测试
|
|
// iOS 真机 - 使用真实域名测试
|
|
|
ios: 'https://book.rrbrr.com/api',
|
|
ios: 'https://book.rrbrr.com/api',
|
|
|
- // H5 - 使用相对路径(通过 Nginx 反向代理)
|
|
|
|
|
|
|
+ // H5 - 需加 /api 以匹配 Vite 代理
|
|
|
h5: '/api',
|
|
h5: '/api',
|
|
|
};
|
|
};
|
|
|
|
|
|