v3.7.0 code=401时request方法没有返回Promise.reject 修复

pull/2/head
YunaiV 2022-02-17 00:48:24 +08:00
parent fc3aa2047c
commit ba74c587b7
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ service.interceptors.response.use(res => {
location.href = '/index'; location.href = '/index';
}) })
}).catch(() => {}); }).catch(() => {});
return Promise.reject('error')
} else if (code === 500) { } else if (code === 500) {
Message({ Message({
message: msg, message: msg,