状态码401返回Promise.reject

pull/86/head
RuoYi 3 years ago
parent e798f46876
commit 9920957796

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

Loading…
Cancel
Save