v3.7.0 防止错误token导致的解析异常

This commit is contained in:
YunaiV 2022-02-17 01:30:08 +08:00
parent ab420e4120
commit 7e31efcfe2

View File

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