Fixed wrong URL construction in ajax call
This commit is contained in:
parent
cadf3f3168
commit
04ae5c8648
2 changed files with 7 additions and 2 deletions
|
|
@ -112,8 +112,9 @@ export default {
|
|||
selector.push('.autocomplete')
|
||||
settings.fields = f.autocomplete_fields
|
||||
settings.minCharacters = 1
|
||||
let backendUrl = config.BACKEND_URL || window.location.protocol + '//' + window.location.hostname + ':' + window.location.port
|
||||
settings.apiSettings = {
|
||||
url: config.BACKEND_URL + f.autocomplete + '?' + f.autocomplete_qs,
|
||||
url: backendUrl + f.autocomplete + '?' + f.autocomplete_qs,
|
||||
beforeXHR: function (xhrObject) {
|
||||
xhrObject.setRequestHeader('Authorization', self.$store.getters['auth/header'])
|
||||
return xhrObject
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue