Commit daef84445a248f1481dfb5f026a265496d7ed8ef

Authored by 刘汉宸
1 parent 79d2b106

fix: 修复查询分页缓存问题

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