mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-03 13:44:47 +08:00
fix: 退出登陆不清空localstorage
This commit is contained in:
@@ -2,8 +2,8 @@ import { defineStore } from "pinia";
|
||||
import { store } from "/@/store";
|
||||
import { userType } from "./types";
|
||||
import { router } from "/@/router";
|
||||
import { storageSession } from "/@/utils/storage";
|
||||
import { getLogin, refreshToken } from "/@/api/user";
|
||||
import { storageLocal, storageSession } from "/@/utils/storage";
|
||||
import { getToken, setToken, removeToken } from "/@/utils/auth";
|
||||
import { useMultiTagsStoreHook } from "/@/store/modules/multiTags";
|
||||
|
||||
@@ -51,7 +51,6 @@ export const useUserStore = defineStore({
|
||||
this.token = "";
|
||||
this.name = "";
|
||||
removeToken();
|
||||
storageLocal.clear();
|
||||
storageSession.clear();
|
||||
useMultiTagsStoreHook().handleTags("equal", [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user