|
|
@ -24,7 +24,7 @@ |
|
|
|
color="secondary" |
|
|
|
v-model="search" |
|
|
|
class="col-6" |
|
|
|
@input="updateSearchUrl" |
|
|
|
@update:model-value="updateSearchUrl" |
|
|
|
placeholder="Search" |
|
|
|
> |
|
|
|
<template v-slot:prepend> |
|
|
@ -138,12 +138,13 @@ export default { |
|
|
|
return colors[state] |
|
|
|
}, |
|
|
|
updateSearchUrl: debounce(function () { |
|
|
|
this.$router.replace({ path: this.$router.path, query: { search: this.search } }) |
|
|
|
this.$router.replace({ path: this.$router.path, query: { ...this.$route.query, search: this.search } }) |
|
|
|
}, 300), |
|
|
|
updatePaginationUrl: debounce(function () { |
|
|
|
this.$router.replace({ |
|
|
|
path: this.$router.path, |
|
|
|
query: { |
|
|
|
...this.$route.query, |
|
|
|
...this.pagination |
|
|
|
} |
|
|
|
}) |
|
|
|