From e92c9716f9e8e3982745e6e617afce026022f395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=9B=E7=9A=93?= Date: Tue, 20 Oct 2020 19:21:14 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=9A=82=E6=97=B6=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E5=88=A0=E9=99=A4=20document=20=E7=9A=84=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/designer/src/project/project.ts | 9 +++++---- packages/rax-simulator-renderer/package.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/designer/src/project/project.ts b/packages/designer/src/project/project.ts index efa5fef89..2c16c25b0 100644 --- a/packages/designer/src/project/project.ts +++ b/packages/designer/src/project/project.ts @@ -200,10 +200,11 @@ export class Project { if (isDocumentModel(doc)) { return doc.open(); } else if (isPageSchema(doc)) { - const foundDoc = this.documents.find(curDoc => curDoc?.rootNode?.id && curDoc?.rootNode?.id === doc?.id); - if (foundDoc) { - foundDoc.remove(); - } + // 暂时注释掉,影响了 diff 功能 + // const foundDoc = this.documents.find(curDoc => curDoc?.rootNode?.id && curDoc?.rootNode?.id === doc?.id); + // if (foundDoc) { + // foundDoc.remove(); + // } } doc = this.createDocument(doc); diff --git a/packages/rax-simulator-renderer/package.json b/packages/rax-simulator-renderer/package.json index 021e0f1a3..048a37e4a 100644 --- a/packages/rax-simulator-renderer/package.json +++ b/packages/rax-simulator-renderer/package.json @@ -57,5 +57,5 @@ "publishConfig": { "registry": "https://registry.npm.alibaba-inc.com" }, - "homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-simulator-renderer@0.13.1-3/build/index.html" + "homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-simulator-renderer@0.13.1-4/build/index.html" }