Browse Source

fix: 退出登录后保留语言主题等设置

王家程 10 months ago
parent
commit
638fd072cc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/stores/modules/userStore.ts

+ 2 - 2
src/stores/modules/userStore.ts

@@ -2,7 +2,7 @@
  * @Author: wjc
  * @Date: 2024-06-05 17:13:30
  * @LastEditors: wjc
- * @LastEditTime: 2024-07-12 17:07:58
+ * @LastEditTime: 2024-07-12 17:18:01
  * @Description:
  */
 import { defineStore } from 'pinia'
@@ -51,7 +51,7 @@ export const useUserStore = defineStore('user', {
         logout()
           .then((res) => {
             if (res && res.data) {
-              appStore.$reset()
+              appStore.setTabbar(0)
               this.$reset()
               resolve(res.data)
             }