Commit 1d02ace8 by xiehao

1、修改参数

1 parent e16534b4
Showing with 7 additions and 7 deletions
......@@ -14,17 +14,17 @@
import vabOnlyOffice from './index.vue'
export default {
components: { vabOnlyOffice },
components: {vabOnlyOffice},
data() {
return {
documentServerUrl: 'http://121.201.2.228:53327/',
documentServerUrl: 'http://43.143.211.42:19231/',
config: {
document: {
fileType: 'doc',
fileType: 'docx',
// 给服务端用的唯一id,同一个id就会获取服务器缓存里的文件(有这个key,就会先根据它去缓存里找),这项如果最开始只是先试用,可以先给个空字符串
key: '737bb9e67f',
key: '71df19fbd1',
// 文件名
title: 'text.docx',
title: '65f90a662c18a9e9f1878156.docx',
//相关权限
// permissions: {
// copy: true, //定义内容是否可以复制到剪贴板。如果该参数设置为false,则只能在当前文档编辑器中粘贴内容。默认值为true。
......@@ -33,7 +33,7 @@ export default {
// print: true, //定义是否可以打印文档。如果打印权限设置为“false”的打印菜单选项将是缺席的文件菜单。默认值为true
// },
// 所要渲染的文件的绝对路径,这个参数很重要,它传的不是文件的本地地址,而是需要把文件传到项目所依赖的服务器,然后拿到文件在服务器的url地址(这个一般情况需要后端支持)才可以用,这个参数决定了能不能实例化出来onlyoffice对象
url: 'http://172.20.10.9:9997/downloadFile/22',
url: 'http://43.143.211.42:7006/downloadFile/29',
},
documentType: 'word',
height: '100%',
......@@ -52,7 +52,7 @@ export default {
name: '',
},
// 指定文档存储服务器的绝对路径
callbackUrl: 'http://192.168.8.120:9997/callback?fileId=22',
callbackUrl: 'http://43.143.211.42:7006/callback?fileId=29',
},
},
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!