mirror of
https://github.com/dataease/dataease.git
synced 2026-05-19 02:08:10 +08:00
perf(仪表板): 在第三方客户端中分享链接错误
This commit is contained in:
committed by
fit2cloud-chenyw
parent
ca69dd2e4b
commit
b465922276
@@ -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/', '')
|
||||
|
||||
@@ -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/', '')
|
||||
|
||||
@@ -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/', '')
|
||||
|
||||
Reference in New Issue
Block a user