Skip to content
Snippets Groups Projects
Commit faaa2a66 authored by thomas.blanc.2@etu.univ-amu.fr's avatar thomas.blanc.2@etu.univ-amu.fr
Browse files

Fixed search path

parent 72f677d1
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ export default {
}
},
async getResult () {
const url = new URL(this.$serverurl + 'search')
var url = this.$serverurl + 'search'
const params = new URLSearchParams()
if (this.paramSearch != null) params.append('name', this.paramSearch)
......@@ -104,7 +104,7 @@ export default {
console.log('get models ' + this.paramSearch + ' + ' + this.paramPerf + ' + ' + this.paramTags)
url.search = params
url += '?' + params
const response = await fetch(url)
try {
return await response.json()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment