浏览代码

:rocket: 正式服

Ritchie 1 年之前
父节点
当前提交
514c6f3e40
共有 2 个文件被更改,包括 8 次插入4 次删除
  1. 5 3
      src/utils/config.js
  2. 3 1
      vue.config.js

+ 5 - 3
src/utils/config.js

@@ -1,12 +1,14 @@
 let baseURL;
 if (process.env.NODE_ENV === "development") {
   // stock dev
-  baseURL = "http://120.25.151.99:49022"
+  // baseURL = "http://120.25.151.99:49022"
+  // baseURL = "http://112.74.63.148:49022"
 
-  // baseURL = "https://sz.sunzee.com.cn/"
+  baseURL = "https://sz.sunzee.com.cn/SZ-STOCK-SERVER"
 } else {
-  baseURL = "http://120.25.151.99:49022"
+  // baseURL = "http://120.25.151.99:49022"
 
+  baseURL = "https://sz.sunzee.com.cn/SZ-STOCK-SERVER"
   // baseURL = "https://sz.sunzee.com.cn/" // prod
 
   // baseURL = 'https://szwl.sunzee.com.cn/' // test

+ 3 - 1
vue.config.js

@@ -17,7 +17,9 @@ module.exports = {
     open: true,
     proxy: {
       "/": {
-        target: 'http://120.25.151.99:49022', // 代理地址,这里设置的地址会代替axios中设置的baseURL
+        // 代理地址,这里设置的地址会代替axios中设置的baseURL
+        // target: 'http://120.25.151.99:49022', // 测试
+        target: 'http://112.74.63.148:49022', // 生产
         // target: "http://120.25.151.99:49011",
         // target: 'http://112.74.63.148:49011',
         // secure: true, // 使用的是http协议设置为 false,https协议设置为 true