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