From 3a80faf0196f8dfa1b6cdb26ece68b37842c66b1 Mon Sep 17 00:00:00 2001 From: litian <2804272236@qq.com> Date: 星期三, 12 六月 2024 19:24:19 +0800 Subject: [PATCH] xiugai --- 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