From 8156e84bffa1de9492874ebef7f84a79ed44cfda Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Wed, 20 Mar 2024 08:31:26 +0800 Subject: [PATCH] axios --- src/request/axios.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = "连接到服务器失败";