forked from github/dataease
Merge pull request #7912 from dataease/pr@dev-v2@fix_embedded_tree_share
fix: 嵌入式场景分享链接错误
This commit is contained in:
commit
76b3869a85
@ -186,8 +186,13 @@ const enableSwitcher = () => {
|
||||
}
|
||||
|
||||
const formatLinkAddr = () => {
|
||||
let prefix = '/'
|
||||
if (window.DataEaseBi?.baseUrl) {
|
||||
prefix = window.DataEaseBi.baseUrl + '#'
|
||||
} else {
|
||||
const href = window.location.href
|
||||
const prefix = href.substring(0, href.indexOf('#') + 1)
|
||||
prefix = href.substring(0, href.indexOf('#') + 1)
|
||||
}
|
||||
linkAddr.value = prefix + SHARE_BASE + state.detailInfo.uuid
|
||||
}
|
||||
|
||||
|
@ -190,8 +190,13 @@ const enableSwitcher = () => {
|
||||
}
|
||||
|
||||
const formatLinkAddr = () => {
|
||||
let prefix = '/'
|
||||
if (window.DataEaseBi?.baseUrl) {
|
||||
prefix = window.DataEaseBi.baseUrl + '#'
|
||||
} else {
|
||||
const href = window.location.href
|
||||
const prefix = href.substring(0, href.indexOf('#') + 1)
|
||||
prefix = href.substring(0, href.indexOf('#') + 1)
|
||||
}
|
||||
linkAddr.value = prefix + SHARE_BASE + state.detailInfo.uuid
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user