Ver código fonte

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

kuaifan 5 anos atrás
pai
commit
6b44da1823
1 arquivos alterados com 1 adições e 3 exclusões
  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: {