forked from github/dataease
Merge pull request #10076 from dataease/pr@dev-v2_st
fix(嵌入式): iframe嵌入式测试
This commit is contained in:
commit
c2b0b8cb3f
@ -106,6 +106,7 @@ const dvSvgType = computed(() =>
|
||||
)
|
||||
|
||||
const isDataEaseBi = computed(() => appStore.getIsDataEaseBi)
|
||||
const isIframe = computed(() => appStore.getIsIframe)
|
||||
|
||||
const resourceTypeList = computed(() => {
|
||||
const list = [
|
||||
@ -368,6 +369,14 @@ const resourceEdit = resourceId => {
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
if (isIframe.value) {
|
||||
router.push({
|
||||
path: curCanvasType.value === 'dataV' ? 'dvCanvas' : 'dashboard',
|
||||
query: curCanvasType.value === 'dataV' ? { dvId: resourceId } : { resourceId }
|
||||
})
|
||||
return
|
||||
}
|
||||
const newWindow = window.open(baseUrl + resourceId, '_blank')
|
||||
initOpenHandler(newWindow)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user