mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
fix
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -33,4 +33,4 @@ packages/api/src/nativeModulesContent.js
|
|||||||
packages/api/src/packagedPluginsContent.js
|
packages/api/src/packagedPluginsContent.js
|
||||||
.VSCodeCounter
|
.VSCodeCounter
|
||||||
|
|
||||||
pacgaes/web/public/*.html
|
packages/web/public/*.html
|
||||||
@@ -10,7 +10,7 @@ export default function resolveApi() {
|
|||||||
if (apiUrl) {
|
if (apiUrl) {
|
||||||
return 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() {
|
export function resolveApiHeaders() {
|
||||||
|
|||||||
Reference in New Issue
Block a user