mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 09:41:57 +00:00
fix: 页面加载之后就被标记位 isModified
This commit is contained in:
parent
e2d712f52f
commit
2840d2747f
@ -36,8 +36,6 @@ export class History {
|
||||
|
||||
this.obx = autorun(() => {
|
||||
const data = logger();
|
||||
// TODO: remove this line
|
||||
console.info('log');
|
||||
if (this.justWokeup) {
|
||||
this.justWokeup = false;
|
||||
return;
|
||||
|
||||
@ -53,6 +53,11 @@ const pages = Object.assign(project, {
|
||||
componentsMap: [],
|
||||
componentsTree,
|
||||
}, true);
|
||||
|
||||
// FIXME: 根本原因应该是 propStash 导致的,这样可以避免页面加载之后就被标记为 isModified
|
||||
setTimeout(() => {
|
||||
project.currentDocument?.history.savePoint();
|
||||
}, 0);
|
||||
},
|
||||
addPage(data: OldPageData | RootSchema) {
|
||||
if (isPageDataV1(data)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user