From 72b5b9e6f69c7fb6265601aed155cb3150e330b9 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 7 Aug 2024 10:55:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=BF=87=E6=BB=A4=E7=BB=84=E4=BB=B6=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC=E5=92=8C=E5=AF=8C=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E4=B8=80=E8=B5=B7=E6=94=BE=E5=9C=A8tab=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E4=B8=AD=EF=BC=8C=E9=A2=84=E8=A7=88=E6=97=B6=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/rich-text/DeRichTextView.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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 13371fd59e..2f01da6a83 100644 --- a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue +++ b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue @@ -107,7 +107,8 @@ const state = reactive({ data: null, viewDataInfo: null, totalItems: 0, - firstRender: true + firstRender: true, + previewFirstRender: true }) const dataRowSelect = ref({}) const dataRowNameSelect = ref({}) @@ -465,11 +466,9 @@ const initCurFields = chartDetails => { // 初始化此处不必刷新 const renderChart = viewInfo => { - if (!state.firstRender) { - calcData(viewInfo) - } else { - state.firstRender = false - } + //do renderView + initCurFieldsChange() + eventBus.emit('initCurFields-' + element.value.id) } const conditionAdaptor = (chart: Chart) => {