Browse Source

fix: PageContent 默认 request 值错误导致分页失效 — page_no/page_size 的默认值应为字符串 key 名而非数字,修正为 'page_no'/'page_size'

alphaH 2 tuần trước cách đây
mục cha
commit
d1c3e602d1
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      frontend/src/components/CURD/PageContent.vue

+ 2 - 2
frontend/src/components/CURD/PageContent.vue

@@ -514,8 +514,8 @@ const pagination = reactive(
 );
 // 分页相关的请求参数
 const request = props.contentConfig.request ?? {
-  page_no: 1,
-  page_size: 10,
+  page_no: "page_no",
+  page_size: "page_size",
 };
 
 const tableRef = ref<TableInstance>();