diff --git a/src/components/office/OnlyOfficeEditor.vue b/src/components/office/OnlyOfficeEditor.vue index e46dadb..7db1297 100644 --- a/src/components/office/OnlyOfficeEditor.vue +++ b/src/components/office/OnlyOfficeEditor.vue @@ -100,7 +100,7 @@ export default { this.$store.dispatch('updateMessage', { event: 'loadFileFailed'}) return } - if (!this.shareId) { + if (this.shareId) { api.getPublicFileInfoById({fileId: this.file.id, shareId: this.shareId}).then(res => { this.file = res.data this.loadFile()