feat: 拼音描红和默写一

This commit is contained in:
R524809
2026-05-20 10:18:25 +08:00
parent b70e54d6b0
commit cab4e9c33f
5 changed files with 23 additions and 20 deletions
+3 -2
View File
@@ -69,7 +69,7 @@ export async function getFavoriteList(
data: { action: 'list', page, pageSize },
});
const result = (res?.result as any) || {};
return result.code === 0 ? result.data : [];
return result.code === 0 ? result.data || [] : [];
} catch (e) {
console.error('getFavoriteList failed', e);
return [];
@@ -126,9 +126,10 @@ export async function batchCheckFavorited(
data: { action: 'batchCheck', worksheetIds },
});
const result = (res?.result as any) || {};
return result.code === 0 ? result.data : {};
return result.code === 0 ? result.data || {} : {};
} catch (e) {
console.error('batchCheckFavorited failed', e);
return {};
}
}