src/components/Table/src/hooks/useDataSource.ts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components/Table/src/hooks/useDataSource.ts
@@ -203,7 +203,7 @@ ...(opt?.filterInfo ?? {}), }; if (beforeFetch && isFunction(beforeFetch)) { params = beforeFetch(params) || params; params = (await beforeFetch(params)) || params; } const res = await api(params); @@ -225,7 +225,7 @@ } if (afterFetch && isFunction(afterFetch)) { resultItems = afterFetch(resultItems) || resultItems; resultItems = (await afterFetch(resultItems)) || resultItems; } dataSourceRef.value = resultItems; setPagination({