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 1/2] =?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) }) }, From d7073295266c15a2c852a051f6fa067c4f716615 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Tue, 8 Aug 2023 16:31:15 +0800 Subject: [PATCH 2/2] =?UTF-8?q?'=E6=89=93=E5=8C=85'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 8613d65d..5f41d30d 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ 思绪思维导图
\ No newline at end of file + } \ No newline at end of file