Skip to content

Commit

Permalink
⚡ 默认重置时刷新表格
Browse files Browse the repository at this point in the history
  • Loading branch information
Hccake committed Nov 24, 2021
1 parent c4d425b commit 5440c4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Table/ProTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,9 @@ export default {
this.search.collapsed = !this.search.collapsed
},
// 清空搜索条件
resetSearchForm () {
resetSearchForm (needReload = true) {
this.queryParam = {}
needReload && this.reloadTable(true)
},
renderSearchForm () {
let searchForm = null
Expand Down

0 comments on commit 5440c4b

Please sign in to comment.