From 61963d5f5dd1e80ca7682c59b4ebf97c3c84789d Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Thu, 10 Jun 2021 10:28:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/loaders/initData.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/back/loaders/initData.ts b/back/loaders/initData.ts index 927df7f5..f7aa9093 100644 --- a/back/loaders/initData.ts +++ b/back/loaders/initData.ts @@ -70,7 +70,9 @@ export default async () => { .exec((err, docs) => { for (let i = 0; i < docs.length; i++) { const doc = docs[i]; - exec(doc.command); + if (doc && doc.isDisabled !== 1) { + exec(doc.command); + } } });