fix: redraw

This commit is contained in:
0JARVIS0 2021-06-09 09:45:57 +08:00
parent 4f7456f0f3
commit 4970430fb7

View File

@ -540,9 +540,9 @@ export default class WxCanvas {
for (const step of realstepList) {
this.implementMinaStep(step);
}
this.ctx.draw(reserve, func);
realstepList.length = 0;
}
this.ctx.draw(reserve, func);
} else if (this.type === "2d") {
if (!reserve) {
this.ctx.clearRect(0, 0, this.canvasNode.width, this.canvasNode.height);