zhuliu 7 月之前
父节点
当前提交
533f635310
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/VabOnlyOffice/index.vue

+ 1 - 1
src/components/VabOnlyOffice/index.vue

@@ -213,7 +213,7 @@ import mixins from './index.js'
           }
         })
         
-        if(this.historyData.length == 0 || !this.currentVersion){
+        if((this.historyData && this.historyData.length == 0) || !this.currentVersion){
           that.docEditor.refreshHistory({
             currentVersion:'',
             history:[]