|
@@ -38,6 +38,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created(){
|
|
created(){
|
|
|
|
|
+ console.log(INTRANET_URL(),'INTRANET_URL()INTRANET_URL()INTRANET_URL()编辑')
|
|
|
this.option.url = INTRANET_URL() + SYSTEM_URL() + '/file/download?attachmentId=' + this.option.url.split('/file/download?attachmentId=')[1]
|
|
this.option.url = INTRANET_URL() + SYSTEM_URL() + '/file/download?attachmentId=' + this.option.url.split('/file/download?attachmentId=')[1]
|
|
|
this.option.editUrl = INTRANET_URL() + SYSTEM_URL() + '/file/editCallback?fileName=' + this.option.editUrl.split('/file/editCallback?fileName=')[1]
|
|
this.option.editUrl = INTRANET_URL() + SYSTEM_URL() + '/file/editCallback?fileName=' + this.option.editUrl.split('/file/editCallback?fileName=')[1]
|
|
|
},
|
|
},
|
|
@@ -76,6 +77,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
setEditor (option) {
|
|
setEditor (option) {
|
|
|
this.doctype = handleDocType(option.fileType)
|
|
this.doctype = handleDocType(option.fileType)
|
|
|
|
|
+
|
|
|
const config = {
|
|
const config = {
|
|
|
document: {
|
|
document: {
|
|
|
fileType: option.fileType,
|
|
fileType: option.fileType,
|
|
@@ -139,6 +141,7 @@ export default {
|
|
|
token: getToken(),
|
|
token: getToken(),
|
|
|
height: document.body.clientHeight + 'px'
|
|
height: document.body.clientHeight + 'px'
|
|
|
}
|
|
}
|
|
|
|
|
+ console.log(config,'configconfigconfigconfigconfig编辑')
|
|
|
const docEditor = new DocsAPI.DocEditor('editorDiv', config)
|
|
const docEditor = new DocsAPI.DocEditor('editorDiv', config)
|
|
|
this.configKey = config.document.key
|
|
this.configKey = config.document.key
|
|
|
},
|
|
},
|