From a6a3fd286bb50f7d9025b4103eccfb389cc70cd2 Mon Sep 17 00:00:00 2001 From: jmal Date: Sat, 18 Jan 2025 15:13:23 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96excalidraw=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/office/ExcalidrawEditor.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/office/ExcalidrawEditor.vue b/src/components/office/ExcalidrawEditor.vue index c335175..08bca7e 100644 --- a/src/components/office/ExcalidrawEditor.vue +++ b/src/components/office/ExcalidrawEditor.vue @@ -100,7 +100,6 @@ export default { created() { }, mounted() { - this.clearExcalidrawCache() window.addEventListener('message', this.handleMessage) }, beforeDestroy() { @@ -118,6 +117,7 @@ export default { if (!this.$store.state.user.token) { request = 'sharePreviewText' } + this.clearExcalidrawCache() api[request]({ shareId: this.shareId, fileId: this.file.id, @@ -243,6 +243,7 @@ export default { this.saved = true this.title = this.file.name this.$emit('onEdit', this.saved) + this.$message.success('保存成功') this.$refs.historyPopover.loadHistoryList(this.file.id) if (this.thisEditorClosing) { this.thisEditorClosing = false