Browse Source

板块调整,付费调整

qymljy 1 year ago
parent
commit
0e7ba39fc7
2 changed files with 2 additions and 4 deletions
  1. 1 3
      src/components/socketMessage/index.vue
  2. 1 1
      vue.config.js

+ 1 - 3
src/components/socketMessage/index.vue

@@ -104,9 +104,7 @@
     },
     destroyed () {
       // 销毁监听
-      let that = this
-      this.socket.onclose = that.close
-
+      this.socket.onclose = this.close
     },
     beforeDestroy () {
       clearInterval(this.realTimeClData);

+ 1 - 1
vue.config.js

@@ -13,7 +13,7 @@ module.exports = {
       '/apis': {
         target: 'http://61.164.207.46:8100/',  // target host
         // target: 'https://meida.cnyunl.com',
-        ws: true,  // proxy websockets 
+        ws: true,  // proxy websockets
         changeOrigin: true,  // needed for virtual hosted sites
         pathRewrite: {
             '^/apis': ''  // rewrite path