Forráskód Böngészése

发布:服务器迁移

chris 1 éve
szülő
commit
2da61a893d
2 módosított fájl, 6 hozzáadás és 6 törlés
  1. 3 3
      config/index.js
  2. 3 3
      src/views/main.vue

+ 3 - 3
config/index.js

@@ -14,9 +14,9 @@ module.exports = {
     // 代理列表, 是否开启代理通过[./dev.env.js]配置
     proxyTable: devEnv.OPEN_PROXY === false ? {} : {
       '/proxyApi': {
-        target: 'https://www.muzhikeji.cn/api', // 正式地址
-        // target: 'http://116.62.189.171/api', // 开发地址
-        // target: 'http://192.168.110.75/api', // 客户地址
+        // target: 'https://www.muzhikeji.cn/api', // 线上环境
+        // target: 'http://116.62.189.171/api', // 开发环境
+        target: 'http://192.168.2.110/api', // 客户环境
         changeOrigin: true,
         pathRewrite: {
           '^/proxyApi': ''

+ 3 - 3
src/views/main.vue

@@ -95,10 +95,10 @@
             // websocket初始化
             // 开发地址
             // this.$store.dispatch('websocket/WEBSOCKET_INIT', 'ws://116.62.189.171:10088/web_socket/' + data.data.userId + '_' + (Math.ceil(Math.random() * 100000000)).toString())
-            // 正式地址
-            this.$store.dispatch('websocket/WEBSOCKET_INIT', 'wss://www.muzhikeji.cn/wss/web_socket/' + data.data.userId + '_' + (Math.ceil(Math.random() * 100000000)).toString())
+            // 线上地址
+            // this.$store.dispatch('websocket/WEBSOCKET_INIT', 'wss://www.muzhikeji.cn/wss/web_socket/' + data.data.userId + '_' + (Math.ceil(Math.random() * 100000000)).toString())
             // 客户环境
-            // this.$store.dispatch('websocket/WEBSOCKET_INIT', 'ws://192.168.110.75:10088/web_socket/' + data.data.userId + '_' + (Math.ceil(Math.random() * 100000000)).toString())
+            this.$store.dispatch('websocket/WEBSOCKET_INIT', 'ws://192.168.2.110:10088/web_socket/' + data.data.userId + '_' + (Math.ceil(Math.random() * 100000000)).toString())
           }
         })
       }