@@ -170,7 +170,8 @@
total?: number
});
if (resWithExtra) {
- tableData.value = (resWithExtra?.records ?? resWithExtra?.list ?? []) as PpePurchaseApply[];
+ const rawList = (resWithExtra?.records ?? resWithExtra?.list ?? []) as (PpePurchaseApply | null)[];
+ tableData.value = rawList.filter((item): item is PpePurchaseApply => item !== null);
pagination.total = resWithExtra?.totalRow ?? resWithExtra?.total ?? 0;
}
} catch (e) {