From 1b6dca100a31fe407f90c827c2e3c63bcd2536ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Thu, 25 Jul 2024 15:00:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/auth/index.ts | 1 + src/store/modules/user.ts | 2 -- src/views/login/index.vue | 5 +++++ src/views/manage/datas/edit.vue | 6 +++++- src/views/manage/otherTool/add.vue | 13 +------------ src/views/manage/otherTool/index.vue | 7 +++---- src/views/manage/otherTool/view.vue | 9 +++------ src/views/system/user/index.vue | 7 +++++-- 8 files changed, 23 insertions(+), 27 deletions(-) diff --git a/src/api/auth/index.ts b/src/api/auth/index.ts index 4b371c2..fb956bb 100644 --- a/src/api/auth/index.ts +++ b/src/api/auth/index.ts @@ -1,3 +1,4 @@ + import request from "@/utils/request"; import { CaptchaResult, LoginData, LoginResult } from "./model"; diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index e7fdb14..269361d 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -1,4 +1,3 @@ -import AuthAPI from "@/api/auth"; import UserAPI from "@/api/user"; import { resetRouter } from "@/router"; import { store } from "@/store"; @@ -63,7 +62,6 @@ export const useUserStore = defineStore("user", () => { return new Promise((resolve, reject) => { sessionApi.logout() .then((d) => { - debugger localStorage.setItem(TOKEN_KEY, ""); location.reload(); // 清空路由 resolve(); diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 516ef0a..bc5d632 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -68,6 +68,7 @@