|
@@ -39,7 +39,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
created(){
|
|
created(){
|
|
|
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.url.split('/file/editCallback?fileName=')[1]
|
|
|
|
|
|
|
+ this.option.editUrl = INTRANET_URL() + SYSTEM_URL() + '/file/editCallback?fileName=' + this.option.editUrl.split('/file/editCallback?fileName=')[1]
|
|
|
},
|
|
},
|
|
|
mounted () {
|
|
mounted () {
|
|
|
// 调用初始化方法 ,渲染wps
|
|
// 调用初始化方法 ,渲染wps
|
|
@@ -47,7 +47,6 @@ export default {
|
|
|
this.setEditor(this.option)
|
|
this.setEditor(this.option)
|
|
|
}
|
|
}
|
|
|
if (this.option.mode === 'edit') {
|
|
if (this.option.mode === 'edit') {
|
|
|
- console.log(this.option,'this.optionthis.option')
|
|
|
|
|
// 编辑模式下轮询获取文件id
|
|
// 编辑模式下轮询获取文件id
|
|
|
this.timer = setInterval(() => {
|
|
this.timer = setInterval(() => {
|
|
|
if (this.configKey) {
|
|
if (this.configKey) {
|