Merge pull request #11086 from dataease/pr@dev-v2@fix_platform_share

fix: OIDC或者CAS场景下分享出来的链接无法访问
This commit is contained in:
fit2cloud-chenyw
2024-07-22 17:41:03 +08:00
committed by GitHub
3 changed files with 12 additions and 0 deletions

View File

@@ -317,6 +317,10 @@ const formatLinkBase = () => {
const href = window.location.href
prefix = href.substring(0, href.indexOf('#') + 1)
}
if (prefix.includes('oidcbi/') || prefix.includes('casbi/')) {
prefix = prefix.replace('oidcbi/', '')
prefix = prefix.replace('casbi/', '')
}
return prefix + SHARE_BASE
}

View File

@@ -248,6 +248,10 @@ const formatLinkBase = () => {
const href = window.location.href
prefix = href.substring(0, href.indexOf('#') + 1)
}
if (prefix.includes('oidcbi/') || prefix.includes('casbi/')) {
prefix = prefix.replace('oidcbi/', '')
prefix = prefix.replace('casbi/', '')
}
return prefix + SHARE_BASE
}
const copyTicket = async ticket => {

View File

@@ -288,6 +288,10 @@ const formatLinkBase = () => {
const href = window.location.href
prefix = href.substring(0, href.indexOf('#') + 1)
}
if (prefix.includes('oidcbi/') || prefix.includes('casbi/')) {
prefix = prefix.replace('oidcbi/', '')
prefix = prefix.replace('casbi/', '')
}
return prefix + SHARE_BASE
}