diff --git a/yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue b/yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue index 72d83d6fe..a3941e01b 100644 --- a/yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue +++ b/yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue @@ -120,7 +120,7 @@ const getColumnsConfig = (options: XTableProps) => { const getProxyConfig = (options: XTableProps) => { const { getListApi, proxyConfig, data, isList } = options if (proxyConfig || data) return - if (getListApi && isFunction(getListApi) && !isList) { + if (getListApi && isFunction(getListApi)) { if (!isList) { options.proxyConfig = { seq: true, // 启用动态序号代理(分页之后索引自动计算为当前页的起始序号) @@ -194,7 +194,8 @@ const getProxyConfig = (options: XTableProps) => { // 分页 const getPageConfig = (options: XTableProps) => { - const { pagination, pagerConfig, treeConfig } = options + const { pagination, pagerConfig, treeConfig, isList } = options + if (isList) return if (treeConfig) { options.treeConfig = options.treeConfig return