diff --git a/src/components/core/dynamic-table/src/hooks/useTableMethods.ts b/src/components/core/dynamic-table/src/hooks/useTableMethods.ts index 4ea8017..a74673a 100644 --- a/src/components/core/dynamic-table/src/hooks/useTableMethods.ts +++ b/src/components/core/dynamic-table/src/hooks/useTableMethods.ts @@ -99,9 +99,15 @@ export const useTableMethods = ({ state, props, emit }: UseTableMethodsContext) ...queryFormRef.value.handleFormValues(values), ...queryParams, }; + for (const key in queryParams) { + if (queryParams[key] !== 0 && !queryParams[key]) { + delete queryParams[key]; + } + } } loadingRef.value = true; + const res = await dataRequest(queryParams); const isArrayResult = Array.isArray(res); diff --git a/src/layout/routerView/index.vue b/src/layout/routerView/index.vue index 5acaf80..b1e9eeb 100644 --- a/src/layout/routerView/index.vue +++ b/src/layout/routerView/index.vue @@ -2,14 +2,14 @@