From bc9e69afcfef8a9552770b293bb04c6e87490103 Mon Sep 17 00:00:00 2001 From: liuxianghui <519646741@qq.com> Date: Fri, 24 Dec 2021 17:21:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AF=BC=E5=87=BA=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/babylon/controller/mode-manager.ts | 2 +- .../babylon/model/data/institution/building/export-data.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/babylon/controller/mode-manager.ts b/src/app/babylon/controller/mode-manager.ts index 146f793..8b28322 100644 --- a/src/app/babylon/controller/mode-manager.ts +++ b/src/app/babylon/controller/mode-manager.ts @@ -28,7 +28,7 @@ export class ModeManager { /** * 调试模式 */ - public static isDebug = true; + public static isDebug = false; diff --git a/src/app/babylon/model/data/institution/building/export-data.ts b/src/app/babylon/model/data/institution/building/export-data.ts index bd607bc..7e584ff 100644 --- a/src/app/babylon/model/data/institution/building/export-data.ts +++ b/src/app/babylon/model/data/institution/building/export-data.ts @@ -36,7 +36,10 @@ export class ExportData { } let type = facilityByTypes[i].facilityType; if (TsTool.stringContain(type, "XF_")) { - this.消防设备.push(new ExportData_XFSB(facilityByTypes[i])); + if (facilityByTypes[i].facilities.length > 0) { + this.消防设备.push(new ExportData_XFSB(facilityByTypes[i])); + } + } for (let j = 0; j < facilities.length; j++) {