fix: 修复freePublish list类型错误

This commit is contained in:
jawe
2025-11-26 09:53:26 +08:00
parent eb27bd5c6d
commit 6a95ed1af0
2 changed files with 4 additions and 6 deletions

View File

@@ -77,9 +77,8 @@ const [Grid, gridApi] = useVbenVxeGrid({
}); });
} }
}); });
// TODO @jaweArticle 类型,报错;
return { return {
list: res.list as unknown as Article[], list: res.list as unknown as MpFreePublishApi.FreePublish[],
total: res.total, total: res.total,
}; };
}, },
@@ -93,7 +92,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
refresh: true, refresh: true,
search: true, search: true,
}, },
} as VxeTableGridOptions<Article>, } as VxeTableGridOptions<FreePublish.FreePublish>,
}); });
</script> </script>

View File

@@ -76,9 +76,8 @@ const [Grid, gridApi] = useVbenVxeGrid({
}); });
} }
}); });
// TODO @jaweArticle 类型,报错;
return { return {
list: res.list as unknown as Article[], list: res.list as unknown as MpFreePublishApi.FreePublish[],
total: res.total, total: res.total,
}; };
}, },
@@ -92,7 +91,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
refresh: true, refresh: true,
search: true, search: true,
}, },
} as VxeTableGridOptions<Article>, } as VxeTableGridOptions<MpFreePublishApi.FreePublish>,
}); });
</script> </script>