+
+
+
+
{
:canvas-style-data="state.canvasStylePreview"
:canvas-view-info="state.canvasViewInfoPreview"
show-position="preview"
+ :download-status="isPc"
>
@@ -102,3 +122,16 @@ onBeforeMount(async () => {
height: 100%;
}
+
diff --git a/core/core-frontend/src/views/chart/ChartView.vue b/core/core-frontend/src/views/chart/ChartView.vue
index 6561206c5d..95b16e3582 100644
--- a/core/core-frontend/src/views/chart/ChartView.vue
+++ b/core/core-frontend/src/views/chart/ChartView.vue
@@ -2,6 +2,7 @@
import { shallowRef, defineAsyncComponent, ref, onBeforeUnmount, onBeforeMount } from 'vue'
import { debounce } from 'lodash-es'
import { XpackComponent } from '@/components/plugin'
+import { useEmitt } from '@/hooks/web/useEmitt'
const currentComponent = shallowRef()
@@ -49,6 +50,11 @@ onBeforeUnmount(() => {
const initIframe = (name: string) => {
currentComponent.value = componentMap[name || 'ViewWrapper']
}
+
+useEmitt({
+ name: 'changeCurrentComponent',
+ callback: initIframe
+})