From e881af358017042209a076554c333bd5e58d1b68 Mon Sep 17 00:00:00 2001
From: litian <2804272236@qq.com>
Date: 星期四, 30 五月 2024 09:19:16 +0800
Subject: [PATCH] 1

---
 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 320cff3..33ecffe 100644
--- a/src/plugin/axios/index.ts
+++ b/src/plugin/axios/index.ts
@@ -36,7 +36,7 @@
   (error) => {
     let msg = '璇锋眰鍙戠敓閿欒';
     if ((error.response && error.response.status == 401) || error.code == "ERR_NETWORK") {
-      localStorage.clear()
+      localStorage.removeItem("token")
       router.replace({
         path: '/login'
       })

--
Gitblit v1.9.1