From 8db5f9ecd73d19d06f09ce9ef460f3a5d6c8192d Mon Sep 17 00:00:00 2001
From: hejianhao <15708179461@qq.com>
Date: 星期四, 09 一月 2025 15:45:00 +0800
Subject: [PATCH] 1

---
 src/component/LogOut.vue |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/component/LogOut.vue b/src/component/LogOut.vue
index e63852d..f4d210f 100644
--- a/src/component/LogOut.vue
+++ b/src/component/LogOut.vue
@@ -32,7 +32,9 @@
     mounted() { },
     methods: {
         submit() {
-            localStorage.clear();
+            this.$store.commit('SET_USERINFO', {})
+            this.$store.commit('SET_USERNAME', '')
+            localStorage.clear()
             window.location.replace('/');
         }
     },

--
Gitblit v1.7.1