From 3d657f76899282487c33c56596daa0f21593328c Mon Sep 17 00:00:00 2001 From: lihui_ocr Date: Sun, 28 Apr 2024 22:16:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=9B=B4=E6=96=B0=E4=BB=AA=E8=A1=A8?= =?UTF-8?q?=E7=9B=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DataHeader/index.vue | 13 +++++++++---- src/store/modules/DataHeader.ts | 1 + src/views/final/content/Content.vue | 3 ++- src/views/worksheet/content/Content.vue | 5 ++++- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/components/DataHeader/index.vue b/src/components/DataHeader/index.vue index b7cb66f..bb1994a 100644 --- a/src/components/DataHeader/index.vue +++ b/src/components/DataHeader/index.vue @@ -114,11 +114,16 @@ async function getData() { datalist.value =newdata ; } } -watch(datalist, (newVal) => { - if(newVal){ - getData(); +watch( + () => headerstore.DataConfig, + (newval) => { + if(headerstore.DataConfig){ + getData(); headerstore.setDataConfig(false) -}}) + } + }, +) +