Sfoglia il codice sorgente

未登录转到首页还显示聊天窗口

kuaifan 5 anni fa
parent
commit
6b44da1823
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 1 3
      resources/assets/js/main/components/WHeader.vue

+ 1 - 3
resources/assets/js/main/components/WHeader.vue

@@ -437,9 +437,7 @@
                 this.tabActive = this.$route.meta.tabActive;
                 this.systemDrawerShow = false;
                 this.userDrawerShow = false;
-                if ($A.urlParameter("open") === 'chat' && $A.getToken() !== false) {
-                    this.chatDrawerShow = true;
-                }
+                this.chatDrawerShow = $A.urlParameter("open") === 'chat' && $A.getToken() !== false;
             }
         },
         methods: {