diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-12 14:18:47 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-12 14:18:47 +0300 |
commit | 162e0d338f5423662829e6d9784186a362a19832 (patch) | |
tree | 22078e27634705282a43a82b355b923ec07bc25b /src/components/_sila/Global/Search.vue | |
parent | 13eb9c09c120271b378109a24f2c3e3d0c1bec84 (diff) | |
download | webui-vue-162e0d338f5423662829e6d9784186a362a19832.tar.xz |
upd route change logic
Diffstat (limited to 'src/components/_sila/Global/Search.vue')
-rw-r--r-- | src/components/_sila/Global/Search.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/_sila/Global/Search.vue b/src/components/_sila/Global/Search.vue index 79a403ad..002669cd 100644 --- a/src/components/_sila/Global/Search.vue +++ b/src/components/_sila/Global/Search.vue @@ -102,7 +102,7 @@ export default { this.$emit('search-by', this.searchBy); }, removeSearchParam() { - window.location.href = '/#/logs/event-logs'; + this.$router.push('/logs/event-logs'); }, search() { if (!this.params) { @@ -110,9 +110,14 @@ export default { } let search = this.params.get('search'); + let by = this.params.get('by'); if (search) { this.filter = search; this.onChangeInput(); + if (by) { + this.searchBy = by; + this.onSelect(); + } } }, onChangeInput() { |