From bf96ab94a5e48e1a4c44d07e2b4b412b70b91adf Mon Sep 17 00:00:00 2001 From: pengda <1111@qq.com> Date: Thu, 31 Jul 2025 11:27:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=B5=8B=E7=99=BB=E9=99=86=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index 706c15c..194ae20 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -1,7 +1,7 @@ // src/utils/request.js import axios from "axios"; import { handleTokenRefresh } from '@/utils/loginRefresh'; -import { host } from '@/config/host'; +// import { host } from '@/config/host'; // 创建 axios 实例 const service = axios.create({ @@ -53,7 +53,7 @@ service.interceptors.response.use( switch (error.response.status) { case 401: // 未授权,跳转到登录页 - window.location.href = host; + window.location.href = "/"; break; case 402: // token失效