mirror of
https://github.com/dataease/dataease.git
synced 2026-05-17 06:50:45 +08:00
fix(嵌入式): iframe嵌入-视图预览失败
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user