forked from github/dataease
fix: OIDC或者CAS场景下分享出来的链接无法访问
This commit is contained in:
parent
9fd340474d
commit
ad6d1063fb
@ -317,6 +317,10 @@ const formatLinkBase = () => {
|
|||||||
const href = window.location.href
|
const href = window.location.href
|
||||||
prefix = href.substring(0, href.indexOf('#') + 1)
|
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
|
return prefix + SHARE_BASE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -248,6 +248,10 @@ const formatLinkBase = () => {
|
|||||||
const href = window.location.href
|
const href = window.location.href
|
||||||
prefix = href.substring(0, href.indexOf('#') + 1)
|
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
|
return prefix + SHARE_BASE
|
||||||
}
|
}
|
||||||
const copyTicket = async ticket => {
|
const copyTicket = async ticket => {
|
||||||
|
@ -288,6 +288,10 @@ const formatLinkBase = () => {
|
|||||||
const href = window.location.href
|
const href = window.location.href
|
||||||
prefix = href.substring(0, href.indexOf('#') + 1)
|
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
|
return prefix + SHARE_BASE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user