From 7e7133a05d5caff61ab969b212c5b46250e7101a Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期四, 13 六月 2024 18:45:13 +0800
Subject: [PATCH] 1

---
 src/plugin/axios/index.ts |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/plugin/axios/index.ts b/src/plugin/axios/index.ts
index 33ecffe..5a9ed77 100644
--- a/src/plugin/axios/index.ts
+++ b/src/plugin/axios/index.ts
@@ -37,6 +37,7 @@
     let msg = '璇锋眰鍙戠敓閿欒';
     if ((error.response && error.response.status == 401) || error.code == "ERR_NETWORK") {
       localStorage.removeItem("token")
+      localStorage.removeItem("userInfo")
       router.replace({
         path: '/login'
       })

--
Gitblit v1.9.1