From 3fcd88da5c8e8712c51722f3710b8f701981a32b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E8=BF=90=E6=A8=A1?= <1724894114@qq.com> Date: Sat, 21 Sep 2024 10:41:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96ws=E9=80=80=E5=87=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/userbar.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/layout/components/userbar.vue b/src/layout/components/userbar.vue index 65f3722..766e252 100644 --- a/src/layout/components/userbar.vue +++ b/src/layout/components/userbar.vue @@ -200,6 +200,8 @@ }).then(async () => { const res = await this.$API.system.user.logout.post(); if(res.code == 200){ + this.$TOOL.data.clear(); + this.$socketApi.closeSock(true); this.$router.replace({path: '/login'}); } }).catch(() => {