iZaiZaiA 2 years ago
parent
commit
d65fe61b99
2 changed files with 6 additions and 8 deletions
  1. 5 6
      src/config/index.js
  2. 1 2
      vite.config.js

+ 5 - 6
src/config/index.js

@@ -17,10 +17,9 @@ export default {
     statusWhiteList: [],    //http的status默认放行列表
     ossUrl: 'https://bladex-test-info.oss-cn-chengdu.aliyuncs.com', //oss地址
     smsPhone: '',  //测试接受短信验证码的手机号
-    dev_version: '202210111620',    //开发版本号
-    prod_host: 'http://47.110.251.215:8090',  //测试线上
-    //prod_host: 'http://127.0.0.1:8090',  //打包线上
-    //dev_host: 'http://192.168.4.6', //黄键楠
-    //dev_host: 'http://192.168.0.118', //祝炜
-    dev_host: 'http://192.168.0.155', //刘依程
+    dev_version: '202211101415',    //开发版本号
+    host: 'http://47.110.251.215:8090',  //测试线上
+    //host: 'http://127.0.0.1:8090',  //打包线上
+    //host: 'http://192.168.0.118', //祝炜
+    //host: 'http://192.168.0.155', //刘依程
 }

+ 1 - 2
vite.config.js

@@ -42,8 +42,7 @@ export default defineConfig({
             '/api': {
                 ws: true,
                 changeOrigin: true,
-                target: config.prod_host,
-                //target: config.dev_host,
+                target: config.host,
                 rewrite: (path) => path.replace(new RegExp('^/api'), '/'),
             }
         }