mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
API url fix
This commit is contained in:
parent
a2884a580f
commit
4d74626e7f
@ -9,7 +9,7 @@ export default function resolveApi() {
|
||||
if (apiUrl) {
|
||||
return apiUrl;
|
||||
}
|
||||
return window.location.href.replace(/\/*$/, '');
|
||||
return (window.location.origin + window.location.pathname).replace(/\/*$/, '');
|
||||
}
|
||||
|
||||
export function resolveApiHeaders() {
|
||||
|
Loading…
Reference in New Issue
Block a user