🐛修复新建word文档时下载失败的问题

This commit is contained in:
jmal 2022-08-26 21:52:23 +08:00
parent 7c96c746ee
commit d73a6ae77b

View File

@ -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,