|
@@ -36,13 +36,13 @@ import mixins from './index.js'
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
- option: {
|
|
|
- handler: function(n) {
|
|
|
- this.setEditor(n)
|
|
|
- this.doctype = this.getFileType(n.fileType)
|
|
|
- },
|
|
|
- deep: true,
|
|
|
- },
|
|
|
+ // option: {
|
|
|
+ // handler: function(n) {
|
|
|
+ // this.setEditor(n)
|
|
|
+ // this.doctype = this.getFileType(n.fileType)
|
|
|
+ // },
|
|
|
+ // deep: true,
|
|
|
+ // },
|
|
|
},
|
|
|
mounted() {
|
|
|
if (this.option.url) {
|
|
@@ -211,7 +211,6 @@ import mixins from './index.js'
|
|
|
// type: "desktop"
|
|
|
}
|
|
|
if(!config.token){
|
|
|
- console.log(config)
|
|
|
//获取token并赋值
|
|
|
var data = {
|
|
|
jsons:JSON.stringify(config)
|
|
@@ -231,7 +230,6 @@ import mixins from './index.js'
|
|
|
|
|
|
// eslint-disable-next-line no-undef,no-unused-vars
|
|
|
this.docEditor = new DocsAPI.DocEditor('vabOnlyOffice', config)
|
|
|
- console.log(this.docEditor)
|
|
|
|
|
|
},
|
|
|
async onRequestHistory(event){
|
|
@@ -253,7 +251,6 @@ import mixins from './index.js'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- console.log(0)
|
|
|
var currentVersion = this.currentVersion.currentVersion
|
|
|
var history = []
|
|
|
for(var i = 0;i<that.historyData.length;i++){
|
|
@@ -276,6 +273,7 @@ import mixins from './index.js'
|
|
|
history:history
|
|
|
}
|
|
|
)
|
|
|
+ return
|
|
|
},
|
|
|
async onRequestHistoryData(event){
|
|
|
const version = event.data
|