Browse Source

fix:退出清除历史记录问题

jinx 2 years ago
parent
commit
67391b775d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/graphic/Controls/UIControl.js

+ 2 - 0
src/graphic/Controls/UIControl.js

@@ -540,6 +540,8 @@ export default class UIControl {
       this.layer.history.save();
     }else{
       historyService.clearHistoryRecord()
+      this.layer.uiControl.graphicStateUI.canRevoke = false;
+      this.layer.uiControl.graphicStateUI.canRecovery = false;
     }
     this.layer.renderer.autoRedraw();
   }