Use relative url instead of absolute url

This commit is contained in:
jingsam 2022-05-29 20:17:18 +08:00 committed by GitHub
parent 0711295b0a
commit dfbfee742a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@
},
methods: {
fetchData() {
fetch('/api/config', {credentials: 'include'})
fetch('../api/config', {credentials: 'include'})
.then(res => {
return res.text()
}).then(text => {