Merge pull request #10677 from dataease/pr@dev-v2@refactor_chart_plugin_init

refactor(图表): 插件图标初始化
This commit is contained in:
wisonic-s 2024-07-01 22:59:21 +08:00 committed by GitHub
commit 8515a76954
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -393,6 +393,7 @@ export const dvMainStore = defineStore('dataVisualization', {
id: component.id,
type: component.innerType,
render: component.render,
isPlugin: component.isPlugin,
plugin: {
isPlugin: component.isPlugin,
staticMap: component.staticMap

View File

@ -516,7 +516,9 @@ const listenerEnable = computed(() => {
return !showPosition.value.includes('viewDialog')
})
onMounted(() => {
queryData(true && !showPosition.value.includes('viewDialog'))
if (!view.value.isPlugin) {
queryData(true && !showPosition.value.includes('viewDialog'))
}
if (!listenerEnable.value) {
return
}