fix(嵌入式): iframe嵌入-视图预览失败
This commit is contained in:
parent
00688d5f38
commit
6a9bcf1188
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user