feat: 生成分享图

This commit is contained in:
2025-10-15 11:20:36 +08:00
parent 56fd71f266
commit 77e50731a3
30 changed files with 2756 additions and 2641 deletions

View File

@@ -7,7 +7,7 @@ import {
export interface UserState {
user: UserInfoType | {};
fetchUserInfo: () => Promise<void>;
fetchUserInfo: () => Promise<UserInfoType | undefined>;
updateUserInfo: (userInfo: Partial<UserInfoType>) => void;
}
@@ -16,9 +16,9 @@ export const useUser = create<UserState>()((set) => ({
fetchUserInfo: async () => {
try {
const res = await fetchUserProfile();
console.log(res);
set({ user: res.data });
} catch {}
return res.data
} catch { }
},
updateUserInfo: async (userInfo: Partial<UserInfoType>) => {
const res = await updateUserProfile(userInfo);