From 69faa8bb3e5416674562b540984417e16828e8f3 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Tue, 8 Aug 2023 16:29:29 +0800 Subject: [PATCH] =?UTF-8?q?Demo=EF=BC=9A=E4=BF=9D=E5=AD=98=E8=A7=86?= =?UTF-8?q?=E5=9B=BE=E6=95=B0=E6=8D=AE=E7=9A=84=E9=80=BB=E8=BE=91=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=98=B2=E6=8A=96=E6=93=8D=E4=BD=9C=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/Edit/components/Edit.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/web/src/pages/Edit/components/Edit.vue b/web/src/pages/Edit/components/Edit.vue index 61bbae82..d79a89ba 100644 --- a/web/src/pages/Edit/components/Edit.vue +++ b/web/src/pages/Edit/components/Edit.vue @@ -122,7 +122,8 @@ export default { return { mindMap: null, mindMapData: null, - prevImg: '' + prevImg: '', + storeConfigTimer: null } }, computed: { @@ -186,9 +187,12 @@ export default { storeData(data) }) this.$bus.$on('view_data_change', data => { - storeConfig({ - view: data - }) + clearTimeout(this.storeConfigTimer) + this.storeConfigTimer = setTimeout(() => { + storeConfig({ + view: data + }) + }, 1000) }) },