瀏覽代碼

修改备注

chris 1 年之前
父節點
當前提交
578b46d139
共有 2 個文件被更改,包括 4 次插入5 次删除
  1. 4 3
      config/index.js
  2. 0 2
      src/views/main.vue

+ 4 - 3
config/index.js

@@ -14,9 +14,10 @@ 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.2.110/api', // 客户环境
+        // 线上环境
+        target: 'https://www.muzhikeji.cn/api',
+        // 客户环境
+        // target: 'http://192.168.2.110/api',
         changeOrigin: true,
         pathRewrite: {
           '^/proxyApi': ''

+ 0 - 2
src/views/main.vue

@@ -93,8 +93,6 @@
             this.$cookie.set('name', data.data.name)
 
             // 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())
             // 客户环境