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

fix(嵌入式): iframe嵌入-视图预览失败
This commit is contained in:
dataeaseShu 2024-08-28 13:53:41 +08:00 committed by GitHub
commit 5231c7f516
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,7 +13,7 @@ import { XpackComponent } from '@/components/plugin'
const { wsCache } = useCache()
const interactiveStore = interactiveStoreWithOut()
const embeddedStore = useEmbedded()
const chartId = inject('embeddedParams') as string
const injectChartId = inject('embeddedParams') as string
const config = ref()
const viewInfo = ref()
const userViewEnlargeRef = ref()
@ -74,6 +74,7 @@ onBeforeMount(async () => {
ElMessage.error(t('visualization.outer_param_decode_error'))
}
}
const chartId = injectChartId || embeddedStore.chartId
initCanvasData(
embeddedStore.dvId,