File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -754,7 +754,10 @@ export default class ScreenShot {
754
754
case "mosaicPen" :
755
755
// 当前为马赛克工具则修改绘制状态
756
756
// 前面做了判断,此处需要特殊处理
757
- this . drawStatus = true ;
757
+ if ( ! this . drawStatus ) {
758
+ this . showLastHistory ( ) ;
759
+ this . drawStatus = true ;
760
+ }
758
761
// 绘制马赛克,为了确保鼠标位置在绘制区域中间,所以对x、y坐标进行-10处理
759
762
drawMosaic (
760
763
currentX - 10 ,
@@ -1130,11 +1133,9 @@ export default class ScreenShot {
1130
1133
if ( this . screenShotContainer == null || this . screenShotCanvas == null ) {
1131
1134
return ;
1132
1135
}
1133
- console . log ( this . drawStatus ) ;
1134
1136
// 工具栏已点击且进行了绘制
1135
1137
if ( this . data . getToolClickStatus ( ) && this . drawStatus ) {
1136
1138
// 保存绘制记录
1137
- console . log ( "保存绘制记录" ) ;
1138
1139
addHistory ( ) ;
1139
1140
return ;
1140
1141
} else if ( this . data . getToolClickStatus ( ) && ! this . drawStatus ) {
You can’t perform that action at this time.
0 commit comments