mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe
synced 2025-04-30 19:19:29 +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.accountType[type] = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.page = 1
|
||||||
this.query()
|
this.query()
|
||||||
},
|
},
|
||||||
setStatus (status = false) {
|
setStatus (status = false) {
|
||||||
|
@ -69,6 +70,7 @@ const UsersTab = {
|
||||||
this.status[status] = true
|
this.status[status] = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.page = 1
|
||||||
this.query()
|
this.query()
|
||||||
},
|
},
|
||||||
setActorType (type = false) {
|
setActorType (type = false) {
|
||||||
|
@ -77,6 +79,11 @@ const UsersTab = {
|
||||||
this.actorType[type] = true
|
this.actorType[type] = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.page = 1
|
||||||
|
this.query()
|
||||||
|
},
|
||||||
|
search () {
|
||||||
|
this.page = 1
|
||||||
this.query()
|
this.query()
|
||||||
},
|
},
|
||||||
prevPage () {
|
prevPage () {
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
v-model="searchTerm"
|
v-model="searchTerm"
|
||||||
class="search-input"
|
class="search-input"
|
||||||
:placeholder="$t('nav.search')"
|
:placeholder="$t('nav.search')"
|
||||||
@keyup.enter="query()"
|
@keyup.enter="search()"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Popover
|
<Popover
|
||||||
|
|
Loading…
Reference in a new issue