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