From 268bf6d9cbfc7c534f231991e88bab727c6e0a28 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期四, 14 八月 2025 11:06:08 +0800 Subject: [PATCH] feat: 接口 --- src/utils/storage/auth.ts | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/storage/auth.ts b/src/utils/storage/auth.ts index b5920be..2ba1a31 100644 --- a/src/utils/storage/auth.ts +++ b/src/utils/storage/auth.ts @@ -30,11 +30,11 @@ return storageLocal.removeItem(StorageKey.REFRESH_TOKEN_KEY); } -export function getUserInfo(): API.PasswordLoginCommandCallback | null { +export function getUserInfo(): API.LoginCommandCallback | null { return storageLocal.getItem(StorageKey.USER_INFO_KEY); } -export function setUserInfo(userInfo: API.PasswordLoginCommandCallback) { +export function setUserInfo(userInfo: API.LoginCommandCallback) { return storageLocal.setItem(StorageKey.USER_INFO_KEY, userInfo); } -- Gitblit v1.9.1