Commit 9083a7ebeed03019a44a9a8be737218540d85659
1 parent
0044234c
fix: data board list not request on reset
Showing
1 changed file
with
7 additions
and
2 deletions
... | ... | @@ -40,6 +40,12 @@ |
40 | 40 | }, |
41 | 41 | submitFunc: async () => { |
42 | 42 | try { |
43 | + const params = searchFormMethod.getFieldsValue(); | |
44 | + await getDatasource(params); | |
45 | + } catch (error) {} | |
46 | + }, | |
47 | + resetFunc: async () => { | |
48 | + try { | |
43 | 49 | await getDatasource(); |
44 | 50 | } catch (error) {} |
45 | 51 | }, |
... | ... | @@ -101,10 +107,9 @@ |
101 | 107 | return basicMenu; |
102 | 108 | }); |
103 | 109 | |
104 | - const getDatasource = async () => { | |
110 | + const getDatasource = async (params: Recordable = {}) => { | |
105 | 111 | try { |
106 | 112 | loading.value = true; |
107 | - const params = searchFormMethod.getFieldsValue() || {}; | |
108 | 113 | const { total, items } = await getDataBoardList({ |
109 | 114 | page: unref(paginationProp).current, |
110 | 115 | pageSize: unref(paginationProp).pageSize, | ... | ... |