From 9833bfa1699c3de44b4af0ece22dd50dda3130bb Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期五, 17 五月 2024 16:21:35 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/TextbookReader --- src/plugin/axios/index.ts | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/plugin/axios/index.ts b/src/plugin/axios/index.ts index 8d4b0d3..320cff3 100644 --- a/src/plugin/axios/index.ts +++ b/src/plugin/axios/index.ts @@ -35,7 +35,7 @@ }, (error) => { let msg = '璇锋眰鍙戠敓閿欒'; - if (error.response && error.response.status == 401) { + if ((error.response && error.response.status == 401) || error.code == "ERR_NETWORK") { localStorage.clear() router.replace({ path: '/login' -- Gitblit v1.9.1