diff --git a/core/core-frontend/config/base.ts b/core/core-frontend/config/base.ts index ddb203e13c..61513f83d1 100644 --- a/core/core-frontend/config/base.ts +++ b/core/core-frontend/config/base.ts @@ -26,6 +26,6 @@ export default { } } }, - sourcemap: true + sourcemap: false } } diff --git a/core/core-frontend/src/pages/panel/main.ts b/core/core-frontend/src/pages/panel/main.ts index 8d1a392fb4..1b34b5747e 100644 --- a/core/core-frontend/src/pages/panel/main.ts +++ b/core/core-frontend/src/pages/panel/main.ts @@ -13,7 +13,8 @@ const formatterUrl = (node: T, prefix: string) => { } if (url.includes(suffix) || url.includes('dataease-private')) { - const currentUrlprefix = new URL(url).origin + const { origin, pathname } = new URL(url) + const currentUrlprefix = `${origin}${pathname.slice(0, pathname.length - 1)}` const newUrl = url.replace(currentUrlprefix, prefix) if (node instanceof HTMLLinkElement) { node.href = newUrl