From 767ed1d0a09b3a42a34d843cd0e83f9654bbc592 Mon Sep 17 00:00:00 2001 From: jmal Date: Tue, 9 May 2023 17:43:56 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=A4=A7=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E6=96=87=E4=BB=B6=E7=9A=84=E9=A2=84=E8=A7=88=E4=BD=93?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Minder/minder.vue | 3 +- src/components/office/Drawio.vue | 3 +- src/components/preview/SimTextPreview.vue | 106 ++++++++++++++++++---- 3 files changed, 93 insertions(+), 19 deletions(-) diff --git a/src/components/Minder/minder.vue b/src/components/Minder/minder.vue index 5afc72d..723c0e0 100644 --- a/src/components/Minder/minder.vue +++ b/src/components/Minder/minder.vue @@ -148,7 +148,8 @@ export default { id: this.file.id, fileName: this.file.name, path: encodeURI(this.file.path), - username: this.$store.state.user.name + username: this.$store.state.user.name, + content: true, }).then((res) => { this.file.path = res.data.path if (res.data.contentText && res.data.contentText.length > 1) { diff --git a/src/components/office/Drawio.vue b/src/components/office/Drawio.vue index ffcd42b..7df6e31 100644 --- a/src/components/office/Drawio.vue +++ b/src/components/office/Drawio.vue @@ -79,7 +79,8 @@ export default { id: this.file.id, fileName: this.file.name, path: encodeURI(this.file.path), - username: this.$store.state.user.name + username: this.$store.state.user.name, + content: true, }).then((res) => { this.file.path = res.data.path this.xml = res.data.contentText diff --git a/src/components/preview/SimTextPreview.vue b/src/components/preview/SimTextPreview.vue index 2667cf8..e29e945 100644 --- a/src/components/preview/SimTextPreview.vue +++ b/src/components/preview/SimTextPreview.vue @@ -126,6 +126,7 @@