zhuliu 7 months ago
parent
commit
533f635310
1 changed files with 1 additions and 1 deletions
  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:[]