mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe
synced 2025-04-30 11:09:30 +08:00
Move to page one if changing query parameters
This commit is contained in:
parent
6c73f448a3
commit
86f0d09276
2 changed files with 8 additions and 1 deletions
|
@ -61,6 +61,7 @@ const UsersTab = {
|
|||
this.accountType[type] = true
|
||||
}
|
||||
|
||||
this.page = 1
|
||||
this.query()
|
||||
},
|
||||
setStatus (status = false) {
|
||||
|
@ -69,6 +70,7 @@ const UsersTab = {
|
|||
this.status[status] = true
|
||||
}
|
||||
|
||||
this.page = 1
|
||||
this.query()
|
||||
},
|
||||
setActorType (type = false) {
|
||||
|
@ -77,6 +79,11 @@ const UsersTab = {
|
|||
this.actorType[type] = true
|
||||
}
|
||||
|
||||
this.page = 1
|
||||
this.query()
|
||||
},
|
||||
search () {
|
||||
this.page = 1
|
||||
this.query()
|
||||
},
|
||||
prevPage () {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
v-model="searchTerm"
|
||||
class="search-input"
|
||||
:placeholder="$t('nav.search')"
|
||||
@keyup.enter="query()"
|
||||
@keyup.enter="search()"
|
||||
/>
|
||||
</div>
|
||||
<Popover
|
||||
|
|
Loading…
Reference in a new issue