mirror of
https://gitee.com/yudaocode/yudao-ui-admin-vben.git
synced 2025-12-30 10:32:25 +00:00
fix: 修复freePublish list类型错误
This commit is contained in:
@@ -77,9 +77,8 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
});
|
||||
}
|
||||
});
|
||||
// TODO @jawe:Article 类型,报错;
|
||||
return {
|
||||
list: res.list as unknown as Article[],
|
||||
list: res.list as unknown as MpFreePublishApi.FreePublish[],
|
||||
total: res.total,
|
||||
};
|
||||
},
|
||||
@@ -93,7 +92,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
refresh: true,
|
||||
search: true,
|
||||
},
|
||||
} as VxeTableGridOptions<Article>,
|
||||
} as VxeTableGridOptions<FreePublish.FreePublish>,
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -76,9 +76,8 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
});
|
||||
}
|
||||
});
|
||||
// TODO @jawe:Article 类型,报错;
|
||||
return {
|
||||
list: res.list as unknown as Article[],
|
||||
list: res.list as unknown as MpFreePublishApi.FreePublish[],
|
||||
total: res.total,
|
||||
};
|
||||
},
|
||||
@@ -92,7 +91,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
refresh: true,
|
||||
search: true,
|
||||
},
|
||||
} as VxeTableGridOptions<Article>,
|
||||
} as VxeTableGridOptions<MpFreePublishApi.FreePublish>,
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user