iZaiZaiA 2 vuotta sitten
vanhempi
commit
6a777d9fd7
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 1 1
      src/config/index.js
  2. 3 3
      vite.config.js

+ 1 - 1
src/config/index.js

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

+ 3 - 3
vite.config.js

@@ -37,13 +37,13 @@ export default defineConfig({
     ],
     server: {
         //port: '3001',
-        host: '0.0.0.0',
+        //host: '0.0.0.0',
         proxy: {
             '/api': {
                 ws: true,
                 changeOrigin: true,
-                //target: config.prod_host,
-                target: config.dev_host,
+                target: config.prod_host,
+                //target: config.dev_host,
                 rewrite: (path) => path.replace(new RegExp('^/api'), '/'),
             }
         }