fix: 修复link部分图单位转换问题
This commit is contained in:
@@ -69,12 +69,16 @@ axios.interceptors.response.use(
|
||||
return response
|
||||
},
|
||||
error => {
|
||||
if (licenceErrorCode.indexOf(error.response.data.code) !== -1) {
|
||||
localStorage.removeItem(storageKey.token)
|
||||
window.location.href = '/'
|
||||
} else if (accountErrorCode.indexOf(error.response.data.code) !== -1) {
|
||||
localStorage.removeItem(storageKey.token)
|
||||
window.location.href = '/'
|
||||
try {
|
||||
if (licenceErrorCode.indexOf(error.response.data.code) !== -1) {
|
||||
localStorage.removeItem(storageKey.token)
|
||||
window.location.href = '/'
|
||||
} else if (accountErrorCode.indexOf(error.response.data.code) !== -1) {
|
||||
localStorage.removeItem(storageKey.token)
|
||||
window.location.href = '/'
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
return Promise.reject(error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user