Skip to content

Commit

Permalink
解决旧版本升级导致刷新后丢失登录的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hslr-s committed Dec 14, 2023
1 parent 5692900 commit 1ef17b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/apps/UserInfo/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ async function logoutApi() {
panelState.removeState()
ms.success(t('settingUserInfo.logoutSuccess'))
router.push({ path: '/login' })
location.reload()// 强制刷新一下页面
}
function handleSaveInfo() {
Expand Down Expand Up @@ -107,7 +108,6 @@ function handleUpdatePassword(e: MouseEvent) {
}).catch(() => {
ms.error(t('common.serverError'))
})
console.log('aaa')
})
}
Expand Down

0 comments on commit 1ef17b5

Please sign in to comment.