Skip to content

Commit 5440c4b

Browse files
committed
⚡ 默认重置时刷新表格
1 parent c4d425b commit 5440c4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Table/ProTable.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,9 @@ export default {
347347
this.search.collapsed = !this.search.collapsed
348348
},
349349
// 清空搜索条件
350-
resetSearchForm () {
350+
resetSearchForm (needReload = true) {
351351
this.queryParam = {}
352+
needReload && this.reloadTable(true)
352353
},
353354
renderSearchForm () {
354355
let searchForm = null

0 commit comments

Comments
 (0)