diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyleCommon.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyleCommon.vue deleted file mode 100644 index 13850514ad..0000000000 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyleCommon.vue +++ /dev/null @@ -1,141 +0,0 @@ - - - - - diff --git a/core/core-frontend/src/views/chart/components/editor/index.vue b/core/core-frontend/src/views/chart/components/editor/index.vue index 197f4bcf55..7472ca678b 100644 --- a/core/core-frontend/src/views/chart/components/editor/index.vue +++ b/core/core-frontend/src/views/chart/components/editor/index.vue @@ -223,20 +223,22 @@ provide('quota', () => state.quota) watch( [() => view.value['tableId']], () => { - if ('picture-group' === props.view.type) { - return - } - getFields(props.view.tableId, props.view.id, props.view.type) - const nodeId = view.value['tableId'] - if (!!nodeId) { - cacheId = nodeId as unknown as string - } - const node = datasetSelector?.value?.getNode(nodeId) - if (node?.data) { - curDatasetWeight.value = node.data.weight - } + nextTick(() => { + if ('picture-group' === props.view.type) { + return + } + getFields(props.view.tableId, props.view.id, props.view.type) + const nodeId = view.value['tableId'] + if (!!nodeId) { + cacheId = nodeId as unknown as string + } + const node = datasetSelector?.value?.getNode(nodeId) + if (node?.data) { + curDatasetWeight.value = node.data.weight + } + }) }, - { deep: true } + { deep: true, immediate: true } ) const getFields = (id, chartId, type) => { if (id && chartId) {