🐛修复新建word文档时下载失败的问题
This commit is contained in:
parent
7c96c746ee
commit
d73a6ae77b
@ -120,9 +120,14 @@ export default {
|
|||||||
this.docEditor.destroyEditor()
|
this.docEditor.destroyEditor()
|
||||||
this.docEditor = null
|
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 fileKey = `${new Date(this.file.updateDate).getTime()}-${this.file.id}`
|
||||||
|
|
||||||
let callbackUrl = fileConfig.officeCallBackUrl(this.$store.getters.token, this.file.id)
|
let callbackUrl = fileConfig.officeCallBackUrl(this.$store.getters.token, this.file.id)
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
"document": {
|
"document": {
|
||||||
"fileType": this.fileType,
|
"fileType": this.fileType,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user