perf(仪表板): 在第三方客户端中分享链接错误

This commit is contained in:
fit2cloud-chenyw
2025-01-21 17:41:23 +08:00
committed by fit2cloud-chenyw
parent ca69dd2e4b
commit b465922276
3 changed files with 3 additions and 6 deletions

View File

@@ -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/', '')

View File

@@ -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/', '')

View File

@@ -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/', '')