Selaa lähdekoodia

发布客户版本

chrislee 1 vuosi sitten
vanhempi
commit
15f2b69f24
2 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 1 0
      config/index.js
  2. 4 2
      src/views/main.vue

+ 1 - 0
config/index.js

@@ -16,6 +16,7 @@ module.exports = {
       '/proxyApi': {
         target: 'https://www.muzhikeji.cn/api', // 正式地址
         // target: 'http://116.62.189.171/api', // 开发地址
+        // target: 'http://192.168.110.75/api', // 客户地址
         changeOrigin: true,
         pathRewrite: {
           '^/proxyApi': ''

+ 4 - 2
src/views/main.vue

@@ -94,9 +94,11 @@
 
             // 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', '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())
           }
         })
       }