forked from integrated_whb/integrated_whb_vue
axios
parent
3bb1832d68
commit
8156e84bff
|
@ -59,8 +59,8 @@ axios.interceptors.response.use(
|
||||||
import.meta.env.DEV &&
|
import.meta.env.DEV &&
|
||||||
ElMessage.error(`连接错误${error.response.status}`);
|
ElMessage.error(`连接错误${error.response.status}`);
|
||||||
endLoading();
|
endLoading();
|
||||||
// ElMessage.error("登录失效,请重新登陆");
|
ElMessage.error("登录失效,请重新登陆");
|
||||||
// router.push("/login").then();
|
router.push("/login").then();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
error.message = "连接到服务器失败";
|
error.message = "连接到服务器失败";
|
||||||
|
|
Loading…
Reference in New Issue