From ac7fde69c457b3488bbfe2671dbfeb3eeba26414 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 13 八月 2025 10:15:20 +0800 Subject: [PATCH] fix: 灵工管理 --- apps/cMiniApp/src/utils/storage/auth.ts | 17 ++--------------- 1 files changed, 2 insertions(+), 15 deletions(-) diff --git a/apps/cMiniApp/src/utils/storage/auth.ts b/apps/cMiniApp/src/utils/storage/auth.ts index b2bbb8f..ecf237f 100644 --- a/apps/cMiniApp/src/utils/storage/auth.ts +++ b/apps/cMiniApp/src/utils/storage/auth.ts @@ -1,6 +1,5 @@ import { storageLocal } from './storage'; import { useUserStoreWithOut } from '@/stores/modules/user'; -import { MatchMakingIdentityEnum } from '@12333/constants'; const StorageKey = { USER_INFO_KEY: 'USER__INFO__', @@ -18,10 +17,10 @@ } export function getUserInfo() { - return storageLocal.getItem<API.IdentityModelTokenCacheItem>(StorageKey.USER_INFO_KEY); + return storageLocal.getItem<API.LoginCommandCallback>(StorageKey.USER_INFO_KEY); } -export function setUserInfo(userInfo: API.IdentityModelTokenCacheItem) { +export function setUserInfo(userInfo: API.LoginCommandCallback) { return storageLocal.setItem(StorageKey.USER_INFO_KEY, userInfo); } @@ -39,18 +38,6 @@ export function removeUserDetail() { return storageLocal.removeItem(StorageKey.USER_DETAIL_KEY); -} - -export function getMatchMakingIdentity() { - return storageLocal.getItem<MatchMakingIdentityEnum>(StorageKey.MatchMakingIdentity_KEY); -} - -export function setMatchMakingIdentity(matchMakingIdentity: MatchMakingIdentityEnum) { - return storageLocal.setItem(StorageKey.MatchMakingIdentity_KEY, matchMakingIdentity); -} - -export function removeMatchMakingIdentity() { - return storageLocal.removeItem(StorageKey.MatchMakingIdentity_KEY); } type StorageLocation = { -- Gitblit v1.9.1