diff --git a/src/request/axios.js b/src/request/axios.js index 80f06e9..2fc5409 100644 --- a/src/request/axios.js +++ b/src/request/axios.js @@ -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 = "连接到服务器失败";