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