fix: add way error

This commit is contained in:
engigu
2024-01-02 20:57:50 +08:00
parent 66be70751f
commit 1ff7d12fb1
8 changed files with 8 additions and 18 deletions
-4
View File
@@ -58,10 +58,6 @@ request.interceptors.response.use(
// 异常处理
const handleException = (error) => {
console.log('99999999', config )
console.log('99999999', config.apiUrl )
console.log('handleException', error);
if (error.code == ERR_NETWORK) {
ElMessage({ message: `网络错误!`, type: 'error' })
} else if (error.response && error.response.data.code != 200) {