From d73a6ae77b872398783ed2aade3728baf3207c52 Mon Sep 17 00:00:00 2001 From: jmal Date: Fri, 26 Aug 2022 21:52:23 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=E4=BF=AE=E5=A4=8D=E6=96=B0?= =?UTF-8?q?=E5=BB=BAword=E6=96=87=E6=A1=A3=E6=97=B6=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/office/OnlyOfficeEditor.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/office/OnlyOfficeEditor.vue b/src/components/office/OnlyOfficeEditor.vue index 138fbec..ca32f1a 100644 --- a/src/components/office/OnlyOfficeEditor.vue +++ b/src/components/office/OnlyOfficeEditor.vue @@ -120,9 +120,14 @@ export default { this.docEditor.destroyEditor() this.docEditor = null } + this.fileUrl = window.location.origin + fileConfig.previewUrl(this.$store.state.user.name, this.file, this.$store.getters.token) + if(this.readOnly){ + this.fileUrl = window.location.origin + fileConfig.publicPreviewUrl(this.file.id, window.shareId); + } let fileKey = `${new Date(this.file.updateDate).getTime()}-${this.file.id}` let callbackUrl = fileConfig.officeCallBackUrl(this.$store.getters.token, this.file.id) + const config = { "document": { "fileType": this.fileType,