chris 2 年之前
父节点
当前提交
06da83a767
共有 3 个文件被更改,包括 9 次插入8 次删除
  1. 1 1
      config/index.js
  2. 2 1
      src/views/main.vue
  3. 6 6
      static/config/index.js

+ 1 - 1
config/index.js

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

+ 2 - 1
src/views/main.vue

@@ -92,7 +92,8 @@
             this.orgId = data.data.orgId
 
             // websocket初始化
-            this.$store.dispatch('websocket/WEBSOCKET_INIT', 'ws://112.74.164.79:10088/web_socket/' + data.data.userId + '_' + (Math.ceil(Math.random() * 100000000)).toString())
+            // this.$store.dispatch('websocket/WEBSOCKET_INIT', 'ws://112.74.164.79: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())
           }
         })
       }

+ 6 - 6
static/config/index.js

@@ -2,13 +2,13 @@
  * 开发环境
  */
 ;(function () {
-  window.SITE_CONFIG = {};
+  window.SITE_CONFIG = {}
 
   // api接口请求地址
-  window.SITE_CONFIG['baseUrl'] = 'http://112.74.164.79/api';
+  window.SITE_CONFIG['baseUrl'] = 'https://www.muzhikeji.cn/api'
 
   // cdn地址 = 域名 + 版本号
-  window.SITE_CONFIG['domain']  = './'; // 域名
-  window.SITE_CONFIG['version'] = '';   // 版本号(年月日时分)
-  window.SITE_CONFIG['cdnUrl']  = window.SITE_CONFIG.domain + window.SITE_CONFIG.version;
-})();
+  window.SITE_CONFIG['domain'] = './' // 域名
+  window.SITE_CONFIG['version'] = ''   // 版本号(年月日时分)
+  window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version
+})()