diff --git a/src/components/common/search-form.vue b/src/components/common/search-form.vue
index 615347b..991299e 100644
--- a/src/components/common/search-form.vue
+++ b/src/components/common/search-form.vue
@@ -1,5 +1,5 @@
@@ -43,7 +50,7 @@ async function search() {
-
+
diff --git a/src/hooks/common/table.ts b/src/hooks/common/table.ts
index 74a11f2..962deaf 100644
--- a/src/hooks/common/table.ts
+++ b/src/hooks/common/table.ts
@@ -32,7 +32,7 @@ export function useTable(config: NaiveUI.NaiveTabl
getData,
searchParams,
updateSearchParams,
- resetSearchParams
+ resetSearchParams: resetSearchParams0
} = useHookTable, TableColumn>>>({
apiFn,
apiParams,
@@ -172,6 +172,11 @@ export function useTable(config: NaiveUI.NaiveTabl
scope.stop();
});
+ const resetSearchParams = () => {
+ resetSearchParams0();
+ getData();
+ };
+
return {
loading,
empty,
diff --git a/src/views/user/manager/index.vue b/src/views/user/manager/index.vue
index b25e04e..c9b665e 100644
--- a/src/views/user/manager/index.vue
+++ b/src/views/user/manager/index.vue
@@ -25,8 +25,7 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP
size: 10,
// if you want to use the searchParams in Form, you need to define the following properties, and the value is null
// the value can not be undefined, otherwise the property in Form will not be reactive
- username: null,
- role: null
+ username: null
},
columns: () => [
{