Commit daef84445a248f1481dfb5f026a265496d7ed8ef
1 parent
79d2b106
Exists in
master
and in
3 other branches
fix: 修复查询分页缓存问题
Showing
1 changed file
with
6 additions
and
1 deletions
Show diff stats
packages/scheme/index.vue
| ... | ... | @@ -15,7 +15,7 @@ |
| 15 | 15 | :list="filterList || listMap.filter | noRulesFilter" |
| 16 | 16 | :size="size" |
| 17 | 17 | @input="onFilterInput" |
| 18 | - @search="search" | |
| 18 | + @search="onSearch" | |
| 19 | 19 | :loading="loading" |
| 20 | 20 | v-bind="filterProps" |
| 21 | 21 | :params="_slotScope" |
| ... | ... | @@ -424,6 +424,11 @@ export default { |
| 424 | 424 | } |
| 425 | 425 | return undefined; |
| 426 | 426 | }, |
| 427 | + // 重置查询 | |
| 428 | + onSearch() { | |
| 429 | + this.currentPage = 1; | |
| 430 | + this.search(); | |
| 431 | + }, | |
| 427 | 432 | // 搜索 |
| 428 | 433 | async search() { |
| 429 | 434 | this.loading = true; | ... | ... |