Преглед изворни кода

config(api): 更新开发环境API配置

- 注释掉旧的开发服务器地址 'http://192.168.0.157:8080'
- 启用新的开发服务器地址 'http://47.109.84.152:8081'
- 在API响应处理器中添加空行以改善代码格式
zhangtao пре 2 дана
родитељ
комит
70eaf5a729
2 измењених фајлова са 3 додато и 2 уклоњено
  1. 1 0
      src/api/core/handlers.ts
  2. 2 2
      src/config/index.ts

+ 1 - 0
src/api/core/handlers.ts

@@ -60,6 +60,7 @@ export async function handleAlovaResponse(
   if (import.meta.env.MODE === 'development') {
     console.log('[Alova Response]', json)
   }
+
   // Return data for successful responses
   if (typeof json == 'string') {
     return JSON.parse(json).data

+ 2 - 2
src/config/index.ts

@@ -13,10 +13,10 @@ const mapEnvVersion = {
    */
   // develop: 'http://192.168.1.166:8080', // 张
   // develop: 'http://192.168.1.101:8080',
-  develop: 'http://192.168.0.157:8080',
+  // develop: 'http://192.168.0.157:8080',
   // develop: 'http://192.168.1.253:8080',
   // develop: 'http://192.168.1.89:8080', // 田
-  // develop: 'http://47.109.84.152:8081',
+  develop: 'http://47.109.84.152:8081',
   // develop: 'https://smqjh.api.zswlgz.com',
   /**
    * 体验版