|
@@ -87,6 +87,22 @@ import mixins from './index.js'
|
|
|
id:option.user.id,
|
|
|
name:option.user.name
|
|
|
}
|
|
|
+
|
|
|
+ let callbackUrl = `http://192.168.2.103:5000/api/xiaoshi/onlyOffice/callback?guid=${option.id}`
|
|
|
+ if(option.title){
|
|
|
+ callbackUrl += `&fileName=${option.title}`
|
|
|
+ }
|
|
|
+ if(option.created){
|
|
|
+ callbackUrl += `&created=${option.created}`
|
|
|
+ }
|
|
|
+ if(user.id){
|
|
|
+ callbackUrl += `&user=${user.id}`
|
|
|
+ }
|
|
|
+ if(option.version){
|
|
|
+ callbackUrl += `&previousVersion=${option.version}`
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
let config = {
|
|
|
document: {
|
|
|
//后缀
|
|
@@ -108,7 +124,7 @@ import mixins from './index.js'
|
|
|
documentType: this.doctype,
|
|
|
editorConfig: {
|
|
|
// callbackUrl: 'http://192.168.2.24:8803/Test/TestQuery',//"编辑word后保存时回调的地址,这个api需要自己写了,将编辑后的文件通过这个api保存到自己想要的位置
|
|
|
- callbackUrl: `http://192.168.2.103:5000/api/xiaoshi/onlyOffice/callback?guid=${option.id}&fileName=${option.title}&created=${option.created}&user=${JSON.stringify(user)}&previousVersion=${option.version}`,//"编辑word后保存时回调的地址,这个api需要自己写了,将编辑后的文件通过这个api保存到自己想要的位置
|
|
|
+ callbackUrl: callbackUrl,//"编辑word后保存时回调的地址,这个api需要自己写了,将编辑后的文件通过这个api保存到自己想要的位置
|
|
|
lang: option.lang,//语言设置
|
|
|
//定制
|
|
|
customization: {
|