From 0d70f01c3553b6c33e5ee86f89f8d0fbd42825d5 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期三, 19 六月 2024 20:00:41 +0800
Subject: [PATCH] 答题器功能

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