Merge pull request #10076 from dataease/pr@dev-v2_st

fix(嵌入式): iframe嵌入式测试
This commit is contained in:
dataeaseShu 2024-06-04 15:55:02 +08:00 committed by GitHub
commit c2b0b8cb3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
}