fix: profile auto refresh #5274

This commit is contained in:
Slinetrac
2025-11-01 17:08:17 +08:00
committed by Tunglies
Unverified
parent b3b8eeb577
commit 9dc50da167
6 changed files with 74 additions and 50 deletions

View File

@@ -341,7 +341,8 @@ export const ProfileItem = (props: Props) => {
try {
// 调用后端更新(后端会自动处理回退逻辑)
await updateProfile(itemData.uid, option);
const payload = Object.keys(option).length > 0 ? option : undefined;
await updateProfile(itemData.uid, payload);
// 更新成功,刷新列表
mutate("getProfiles");