From b4659222768b726771ace4ed8751d76ae5edc0ae Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 21 Jan 2025 17:41:23 +0800 Subject: [PATCH] =?UTF-8?q?perf(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E5=9C=A8?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=96=B9=E5=AE=A2=E6=88=B7=E7=AB=AF=E4=B8=AD?= =?UTF-8?q?=E5=88=86=E4=BA=AB=E9=93=BE=E6=8E=A5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/share/share/ShareHandler.vue | 3 +-- core/core-frontend/src/views/share/share/ShareTicket.vue | 3 +-- core/core-frontend/src/views/share/share/ShareVisualHead.vue | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/core/core-frontend/src/views/share/share/ShareHandler.vue b/core/core-frontend/src/views/share/share/ShareHandler.vue index e229c53c9f..9d80ecd64e 100644 --- a/core/core-frontend/src/views/share/share/ShareHandler.vue +++ b/core/core-frontend/src/views/share/share/ShareHandler.vue @@ -429,8 +429,7 @@ const formatLinkBase = () => { if (embeddedStore.baseUrl) { prefix = embeddedStore.baseUrl + '#' } else { - const href = window.location.href - prefix = href.substring(0, href.indexOf('#') + 1) + prefix = window.location.origin + window.location.pathname + '#' } if (prefix.includes('oidcbi/') || prefix.includes('casbi/')) { prefix = prefix.replace('oidcbi/', '') diff --git a/core/core-frontend/src/views/share/share/ShareTicket.vue b/core/core-frontend/src/views/share/share/ShareTicket.vue index e76ab6ef7c..d3b7fb75f4 100644 --- a/core/core-frontend/src/views/share/share/ShareTicket.vue +++ b/core/core-frontend/src/views/share/share/ShareTicket.vue @@ -224,8 +224,7 @@ const formatLinkBase = () => { if (embeddedStore.baseUrl) { prefix = embeddedStore.baseUrl + '#' } else { - const href = window.location.href - prefix = href.substring(0, href.indexOf('#') + 1) + prefix = window.location.origin + window.location.pathname + '#' } if (prefix.includes('oidcbi/') || prefix.includes('casbi/')) { prefix = prefix.replace('oidcbi/', '') diff --git a/core/core-frontend/src/views/share/share/ShareVisualHead.vue b/core/core-frontend/src/views/share/share/ShareVisualHead.vue index 85c59285c1..a49af8d26c 100644 --- a/core/core-frontend/src/views/share/share/ShareVisualHead.vue +++ b/core/core-frontend/src/views/share/share/ShareVisualHead.vue @@ -418,8 +418,7 @@ const formatLinkBase = () => { if (embeddedStore.baseUrl) { prefix = embeddedStore.baseUrl + '#' } else { - const href = window.location.href - prefix = href.substring(0, href.indexOf('#') + 1) + prefix = window.location.origin + window.location.pathname + '#' } if (prefix.includes('oidcbi/') || prefix.includes('casbi/')) { prefix = prefix.replace('oidcbi/', '')