diff --git a/frontend/src/api.js b/frontend/src/api.js index 27dc0c4..50b1b8e 100644 --- a/frontend/src/api.js +++ b/frontend/src/api.js @@ -35,6 +35,9 @@ export const getEvent = (options) => { } else if (options && options.hasOwnProperty('page') && options.page) { url += '/page/' + options.page } + if (options.searchStr && options.searchStr.trim()) { + url += '/search/' + options.searchStr.trim().split(/\s+/).join('+') + } return axios({ url: url }) diff --git a/frontend/src/components/BugitDevices.vue b/frontend/src/components/BugitDevices.vue index 97214ce..53844b3 100644 --- a/frontend/src/components/BugitDevices.vue +++ b/frontend/src/components/BugitDevices.vue @@ -1,15 +1,15 @@