From 22bb785139ad85295939f46b00304b4208750645 Mon Sep 17 00:00:00 2001 From: whyour Date: Thu, 11 Nov 2021 22:56:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E9=87=8D=E5=90=AF=E6=97=B6?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E6=94=B9=E4=B8=BA=E5=8D=95=E7=8B=AC=E5=AE=89?= =?UTF-8?q?=E8=A3=85=EF=BC=8C=E9=81=BF=E5=85=8D=E5=90=8C=E6=97=B6=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/loaders/initData.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/back/loaders/initData.ts b/back/loaders/initData.ts index a461fba9..cb8cca5f 100644 --- a/back/loaders/initData.ts +++ b/back/loaders/initData.ts @@ -27,7 +27,10 @@ export default async () => { for (const key in groups) { if (Object.prototype.hasOwnProperty.call(groups, key)) { const group = groups[key]; - dependenceService.reInstall(group.map((x) => x._id)); + const depIds = group.map((x) => x._id); + for (const dep of depIds) { + dependenceService.reInstall([dep]); + } } } });