diff --git a/src/utils/myAxios.js b/src/utils/myAxios.js index f2db34a..c4b5434 100644 --- a/src/utils/myAxios.js +++ b/src/utils/myAxios.js @@ -57,8 +57,7 @@ myAxios.interceptors.response.use( switch (error.response.status) { case 401: message = '未授权,请重新登录' - // 示例:跳转到登录页(需导入 router) - // router.push('/login') + router.push('/login') break case 403: message = '没有权限访问'