Explorar o código

feat: 在退出登录时重置 tabbar 项目

zhangtao hai 6 días
pai
achega
4fd987bd04
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/pages/my/index.vue

+ 1 - 0
src/pages/my/index.vue

@@ -30,6 +30,7 @@ function handleLoginOut() {
       useUserStore().$reset()
       useSmqjhCartStore().$reset()
       useAddressStore().$reset()
+      useTabbar().setTabbarItem('smqjh-cart', 0)
       router.replace({ name: 'smqjh-login' })
     },
   })