From 752ed00ca8085cd8bb7e602d55fde39d45f487be Mon Sep 17 00:00:00 2001
From: litian <2804272236@qq.com>
Date: 星期五, 14 六月 2024 11:19:24 +0800
Subject: [PATCH] web1

---
 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