mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 11:20:11 +00:00
fix(history): do not record unchanged data
This commit is contained in:
parent
5de97c10c8
commit
335314aec6
@ -41,6 +41,12 @@ export class History<T = NodeSchema> {
|
|||||||
if (this.asleep) return;
|
if (this.asleep) return;
|
||||||
untracked(() => {
|
untracked(() => {
|
||||||
const log = this.currentSerialization.serialize(data);
|
const log = this.currentSerialization.serialize(data);
|
||||||
|
|
||||||
|
// do not record unchanged data
|
||||||
|
if (this.session.data === log) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.session.isActive()) {
|
if (this.session.isActive()) {
|
||||||
this.session.log(log);
|
this.session.log(log);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user