From 59a50aaf5f793dc64845448620196b06904b4e3c Mon Sep 17 00:00:00 2001 From: ChenX Date: Tue, 25 May 2021 16:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91:=E8=BE=93=E5=87=BA=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UI/Layout/ApplicationLayout.tsx | 2 ++ src/index.tsx | 7 ++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/UI/Layout/ApplicationLayout.tsx b/src/UI/Layout/ApplicationLayout.tsx index 4a89c6e4c..0067ab420 100644 --- a/src/UI/Layout/ApplicationLayout.tsx +++ b/src/UI/Layout/ApplicationLayout.tsx @@ -33,11 +33,13 @@ export let appUi: WebCAD; export class WebCAD { + app: ApplicationService; constructor() { this.initRootLayout(); let app = new ApplicationService(); + this.app = app; registerCommand(); this.renderMain(); diff --git a/src/index.tsx b/src/index.tsx index 2e3745499..42264b631 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -189,11 +189,8 @@ window.onload = function () ReportErrorWrap.ReportError = ReportError; - let searchParams = new URLSearchParams(location.search); - - if (searchParams.has("disablerefcut")) - ExtrudeConfig.DisableRefCut = true; - new WebCAD(); + let cad = new WebCAD(); + cad.app.Editor.Prompt(`当前版本编译时间:${version}`); }; globalThis["copy"] = (text: string) =>