fix(嵌入式): 嵌入式跳转测试

This commit is contained in:
dataeaseShu 2024-06-06 09:55:42 +08:00
parent a36d67b8ee
commit 5df01b4cf5
2 changed files with 10 additions and 0 deletions

View File

@ -419,6 +419,10 @@ const jumpClick = param => {
return
}
if (isIframe.value) {
embeddedStore.clearState()
}
if (iframeSelf) {
router.push(parseUrl(url))
return
@ -438,6 +442,10 @@ const jumpClick = param => {
divEmbedded('Iframe')
return
}
if (isIframe.value) {
embeddedStore.clearState()
}
windowsJump(url, jumpInfo.jumpType)
}
} else {

View File

@ -73,6 +73,7 @@ const loadCanvasDataAsync = async (dvId, dvType) => {
ElMessage.error(t('visualization.outer_param_decode_error'))
}
}
console.log('PreviewCanvas', dvId, jumpParam, attachParam)
initCanvasData(
dvId,
@ -107,6 +108,7 @@ let p = null
const XpackLoaded = () => p(true)
onMounted(async () => {
await new Promise(r => (p = r))
console.log('embeddedStore', embeddedStore, router)
const dvId = embeddedStore.dvId || router.currentRoute.value.query.dvId
const { dvType, callBackFlag } = router.currentRoute.value.query
if (dvId) {