diff --git a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue index a6063e7aff..f8846e202a 100644 --- a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue +++ b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue @@ -106,7 +106,8 @@ const { element, editMode, active, disabled, showPosition } = toRefs(props) const state = reactive({ data: null, viewDataInfo: null, - totalItems: 0 + totalItems: 0, + firstRender: true }) const dataRowSelect = ref({}) const dataRowNameSelect = ref({}) @@ -453,8 +454,13 @@ const initCurFields = chartDetails => { } } +// 初始化此处不必刷新 const renderChart = viewInfo => { - calcData(viewInfo) + if (!state.firstRender) { + calcData(viewInfo) + } else { + state.firstRender = false + } } const conditionAdaptor = (chart: Chart) => { diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue index 06330d8276..be2a4bb9f6 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue @@ -347,7 +347,7 @@ watch( v-model="chart.customAttr.label.show" :change-model="chart.customAttr.label" @modelChange="val => onLabelChange(val, 'show')" - :title="$t('chart.label') + '11'" + :title="$t('chart.label')" name="label" >