Commit fdac565e by xiehao

fix:删除了试用范围

1 parent 785072e6
Showing with 3 additions and 2 deletions
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
// print: true, //定义是否可以打印文档。如果打印权限设置为“false”的打印菜单选项将是缺席的文件菜单。默认值为true // print: true, //定义是否可以打印文档。如果打印权限设置为“false”的打印菜单选项将是缺席的文件菜单。默认值为true
// }, // },
// 所要渲染的文件的绝对路径,这个参数很重要,它传的不是文件的本地地址,而是需要把文件传到项目所依赖的服务器,然后拿到文件在服务器的url地址(这个一般情况需要后端支持)才可以用,这个参数决定了能不能实例化出来onlyoffice对象 // 所要渲染的文件的绝对路径,这个参数很重要,它传的不是文件的本地地址,而是需要把文件传到项目所依赖的服务器,然后拿到文件在服务器的url地址(这个一般情况需要后端支持)才可以用,这个参数决定了能不能实例化出来onlyoffice对象
url: `${documentServerUrl}${EADC_SHARED_ABILITY}/downloadFile/302`, url: `${documentServerUrl}${EADC_SHARED_ABILITY}/downloadFile/419`,
}, },
documentType: 'word', documentType: 'word',
height: '100%', height: '100%',
...@@ -141,7 +141,7 @@ export default { ...@@ -141,7 +141,7 @@ export default {
name: '管理员', name: '管理员',
}, },
// 指定文档存储服务器的绝对路径 // 指定文档存储服务器的绝对路径
callbackUrl: `${documentServerUrl}${EADC_SHARED_ABILITY}/callback?fileId=302`, callbackUrl: `${documentServerUrl}${EADC_SHARED_ABILITY}/callback?fileId=419`,
}, },
}, },
leftSelectData: [], leftSelectData: [],
...@@ -176,6 +176,7 @@ export default { ...@@ -176,6 +176,7 @@ export default {
this.leftSelectData = res.data this.leftSelectData = res.data
if (this.leftSelectData.length) { if (this.leftSelectData.length) {
this.config.document.url = `${documentServerUrl}${EADC_SHARED_ABILITY}/downloadFile/${this.leftSelectData[0].fileId}` this.config.document.url = `${documentServerUrl}${EADC_SHARED_ABILITY}/downloadFile/${this.leftSelectData[0].fileId}`
console.log("文档下载地址:", this.config.document.url)
this.config.editorConfig.url = `${documentServerUrl}${EADC_SHARED_ABILITY}/callback?fileId=${this.leftSelectData[0].fileId}` this.config.editorConfig.url = `${documentServerUrl}${EADC_SHARED_ABILITY}/callback?fileId=${this.leftSelectData[0].fileId}`
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!