Merge pull request 'fix : 修复用户切换时,报错提示' (#753) from de into master
Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/753
This commit is contained in:
@@ -115,6 +115,12 @@ const accountChange = (userId) => {
|
||||
authStore.userLogout()
|
||||
setToken(res.data)
|
||||
window.location.href = "/home"
|
||||
}else{
|
||||
ElNotification({
|
||||
title: '提示',
|
||||
message: res.msg,
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user