|
@@ -59,9 +59,9 @@ addResErrorHandler((response, data) => {
|
|
|
: data?.message || data?.msg;
|
|
|
if (data.code === ResCode.TOKEN_INVALID) {
|
|
|
gotoLogin();
|
|
|
- } else if (data.code === ResCode.SUCCESS) {
|
|
|
- Dialog.alert(msg).then(() => {
|
|
|
- location.href = `/admin/#/login`
|
|
|
+ } else if (data.code === ResCode.UN_AUTH) {
|
|
|
+ Dialog.alert({content: msg, okText: '我知道了'}).then(() => {
|
|
|
+ gotoLogin();
|
|
|
})
|
|
|
throw msg
|
|
|
} else {
|