Added dynamic base path determination for HTTP requests

pull/1/head
cascha42 6 months ago
parent 0ccd6e6c5d
commit 43a8e087bb

@ -211,7 +211,7 @@
}) })
this.$http.get(`${this.basePath}/credentials`).then(response => { this.$http.get(`${this.basePath}/credentials`).then(response => {
this.credentialsData = response.body this.credentialsData = response.body
}); })
}, },
storeConfig() { storeConfig() {
const storeConfig = JSON.parse(JSON.stringify(this.configData)) const storeConfig = JSON.parse(JSON.stringify(this.configData))
@ -230,7 +230,7 @@
.then(() => { .then(() => {
document.body.style = 'display:none' document.body.style = 'display:none'
setTimeout(() => window.location.reload(), 1e3) setTimeout(() => window.location.reload(), 1e3)
}); })
}, },
storeCredentials() { storeCredentials() {
this.$http.post(`${this.basePath}/credentials`, this.credentialsData).then(response => { this.$http.post(`${this.basePath}/credentials`, this.credentialsData).then(response => {

Loading…
Cancel
Save