mirror of
https://github.com/dbgate/dbgate
synced 2024-11-09 21:26:30 +00:00
fix
This commit is contained in:
parent
eb56b6eab8
commit
7c04dc00b1
2
.gitignore
vendored
2
.gitignore
vendored
@ -33,4 +33,4 @@ packages/api/src/nativeModulesContent.js
|
||||
packages/api/src/packagedPluginsContent.js
|
||||
.VSCodeCounter
|
||||
|
||||
pacgaes/web/public/*.html
|
||||
packages/web/public/*.html
|
@ -10,7 +10,7 @@ export default function resolveApi() {
|
||||
if (apiUrl) {
|
||||
return apiUrl;
|
||||
}
|
||||
return (window.location.origin + window.location.pathname).replace(/\/*$/, '');
|
||||
return (window.location.origin + window.location.pathname).replace(/\/[a-zA-Z-]+\.html$/, '').replace(/\/*$/, '');
|
||||
}
|
||||
|
||||
export function resolveApiHeaders() {
|
||||
|
Loading…
Reference in New Issue
Block a user