Skip to content

Commit

Permalink
fix 退出重新登录时清除上次tags
Browse files Browse the repository at this point in the history
  • Loading branch information
zds-s committed Jan 19, 2024
1 parent 577973a commit 804e51b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/views/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import { reactive, ref } from 'vue'
import verifyCode from '@cps/ma-verifyCode/index.vue'
import { useUserStore } from '@/store'
import { useTagStore } from '@/store'
import { useRouter, useRoute } from 'vue-router'
import { request } from '@/utils/request'

Expand Down Expand Up @@ -50,6 +51,7 @@ const handleSubmit = async ({ values, errors }) => {
loading.value = false
return
}
useTagStore().tags = [];
router.push(redirect)
}
loading.value = false
Expand Down

0 comments on commit 804e51b

Please sign in to comment.