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 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) }) },