Просмотр исходного кода

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

王家程 10 месяцев назад
Родитель
Сommit
638fd072cc
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/stores/modules/userStore.ts

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

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