mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-20 07:14:23 +00:00
fix: 修复第一次切换页面就提示有数据修改未保存的行为
This commit is contained in:
parent
15f3445ec0
commit
ca4222a98e
@ -74,7 +74,11 @@ const pages = Object.assign(project, {
|
|||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
|
|
||||||
project.currentDocument?.history.savePoint();
|
// FIXME: 根本原因是 PropStash 导致的,在页面节点初始化结束后,hideModalNodes 导致了第一次变化
|
||||||
|
// 这样可以避免页面加载之后就被标记为 isModified
|
||||||
|
setTimeout(() => {
|
||||||
|
project.currentDocument?.history.savePoint();
|
||||||
|
}, 0);
|
||||||
},
|
},
|
||||||
addPage(data: OldPageData | RootSchema) {
|
addPage(data: OldPageData | RootSchema) {
|
||||||
if (isPageDataV1(data)) {
|
if (isPageDataV1(data)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user