From a48fa6b879746bda38ff6299db897a51beb953c6 Mon Sep 17 00:00:00 2001 From: szrpf <27185709@qq.com> Date: Sat, 22 Apr 2023 15:30:30 +0800 Subject: [PATCH] Signed-off-by: szrpf <27185709@qq.com> --- assets/Script/DataBoard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/Script/DataBoard.ts b/assets/Script/DataBoard.ts index 663e7ff..39346be 100644 --- a/assets/Script/DataBoard.ts +++ b/assets/Script/DataBoard.ts @@ -146,11 +146,11 @@ export default class DataBoard extends cc.Component { private monitorComp: cc.Component = null; protected onLoad() { - this.boardNode = this.node.getChildByName('DataBoard'); if (!CC_EDITOR && !window['DATABOARD']) { this.destroy(); return; } + this.boardNode = this.node.getChildByName('DataBoard'); if (cc.isValid(this.boardNode)) { this.boardNode.removeFromParent(); this.boardNode.destroy();