Browse Source

清除登录状态

yuanmingze 3 months ago
parent
commit
399eb74737
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/views/login/index.vue

+ 1 - 0
src/views/login/index.vue

@@ -278,6 +278,7 @@ const toAgreement = (type: string) => {
 }
 
 onBeforeMount(() => {
+  userStore.LogOut()
   registerUrlParams.value.returnUrl = `${location.origin}${route.fullPath}`
   const pushRecordId = route?.query.pushRecordId || ''
   if (pushRecordId) {