lxf il y a 2 semaines
Parent
commit
659c2ee9f1
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1 1
      src/App.vue
  2. 2 2
      src/mixins/tradeAssets.js

+ 1 - 1
src/App.vue

@@ -51,7 +51,7 @@ export default {
     '$route'() {
       this.abnormalPopSign = false
       if (!this.$route.meta.socket) {
-        this.webSocket && this.webSocket.close()
+        this.webSocket && this.webSocket.close();
         clearInterval(this.socketTimer)
         this.socketTimer = null
         this.$store.commit('setUpdateSymbolList', [])

+ 2 - 2
src/mixins/tradeAssets.js

@@ -18,8 +18,8 @@ export default {
   watch: {
     isLogin(val) {
       if (!val) {
-        this.updateTradeAssetSocket && this.updateTradeAssetSocket.close()
-        (this.sendTimer && clearInterval(this.sendTimer))
+        this.updateTradeAssetSocket && this.updateTradeAssetSocket.close();
+        (this.sendTimer && clearInterval(this.sendTimer));
         return
       }
       if (val) {