Support reverseproxy to dashboard with additional parts in path (#2289)

/api/ -> ../api/   in vendor.js
    Support reverseproxy to dashboard with addtional parts in path.
This commit is contained in:
YK-Samgo
2021-03-19 17:31:16 +08:00
committed by GitHub
parent e7d76b180d
commit bed13d7ef1
11 changed files with 15 additions and 13 deletions

View File

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