fix(projects): add getDataByPage for useTable. fixed #499

This commit is contained in:
Soybean
2024-06-20 19:27:39 +08:00
parent f7de3fd0f1
commit 425c69acc2
4 changed files with 47 additions and 8 deletions

View File

@@ -18,7 +18,7 @@ const { bool: visible, setTrue: openModal } = useBoolean();
const wrapperRef = ref<HTMLElement | null>(null);
const { columns, columnChecks, data, loading, pagination, getData } = useTable({
const { columns, columnChecks, data, loading, pagination, getData, getDataByPage } = useTable({
apiFn: fetchGetMenuList,
columns: () => [
{
@@ -257,7 +257,7 @@ init();
:operate-type="operateType"
:row-data="editingData"
:all-pages="allPages"
@submitted="getData"
@submitted="getDataByPage"
/>
</NCard>
</div>