fix : 修复用户切换时,报错提示

This commit is contained in:
2024-09-08 19:38:34 +08:00
parent b90d3bc466
commit 09cef9de33

View File

@@ -115,6 +115,12 @@ const accountChange = (userId) => {
authStore.userLogout()
setToken(res.data)
window.location.href = "/home"
}else{
ElNotification({
title: '提示',
message: res.msg,
type: 'error'
})
}
})
}