feat(editor): 历史记录最多存储20条

This commit is contained in:
roymondchen 2023-08-15 16:15:10 +08:00
parent ccd6fd2be3
commit ec8e8a17d2

View File

@ -23,7 +23,7 @@ export class UndoRedo<T = any> {
private listCursor: number;
private listMaxSize: number;
constructor(listMaxSize = 200) {
constructor(listMaxSize = 20) {
const minListMaxSize = 2;
this.elementList = [];
this.listCursor = 0;