Browse Source

发布:服务器迁移

chris 1 year ago
parent
commit
5a4291a4b0
2 changed files with 4 additions and 4 deletions
  1. 2 2
      config/index.js
  2. 2 2
      src/views/main.vue

+ 2 - 2
config/index.js

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

+ 2 - 2
src/views/main.vue

@@ -96,9 +96,9 @@
             // 开发地址
             // 开发地址
             // 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.2.110: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())
           }
           }
         })
         })
       }
       }