Skip to content

Commit

Permalink
[*] 登录过期清除用户数据
Browse files Browse the repository at this point in the history
  • Loading branch information
Muska-Ami committed Oct 9, 2024
1 parent b95c4a1 commit b520ef8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ setInterval(async () => {
if (userData.getters.get_token !== '') {
const valid = await fetchUserInfo()
if (!valid) {
logout()
router.push({ name: 'Login' })
}
}
Expand Down

0 comments on commit b520ef8

Please sign in to comment.