소스 검색

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

jinx 2 년 전
부모
커밋
67391b775d
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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();
   }