commit
00defd3a76
|
|
@ -46,7 +46,7 @@ class httpRequest {
|
|||
// 后端服务在个别情况下回报201,待确认
|
||||
if (data.code === 401) {
|
||||
Cookies.remove(TOKEN_KEY)
|
||||
window.location.href = '/#/login'
|
||||
window.location.href = window.location.pathname + '#/login'
|
||||
Message.error('未登录,或登录失效,请登录')
|
||||
} else {
|
||||
if (data.msg) Message.error(data.msg)
|
||||
|
|
|
|||
Loading…
Reference in New Issue