From 6f5082cc29923433f2aa2ece74cc7efca517b466 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 8 Aug 2022 11:31:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- templates/repo/modelmanage/index.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/modelmanage/index.tmpl b/templates/repo/modelmanage/index.tmpl index e92c3bd5f..52b042c46 100644 --- a/templates/repo/modelmanage/index.tmpl +++ b/templates/repo/modelmanage/index.tmpl @@ -479,8 +479,8 @@ for(let j=0;j < fileSplits.length;j++){ if(fileSplits[j] == ""){ if(data[i].FileName[data[i].FileName.length -1] =="/"){ - if(Object.keys(parentNodeMap[fileSplits[j-1]]).length ==0){ - parentNodeMap[fileSplits[j-1]][dirKey]="true"; + if(Object.keys(parentNodeMap).length ==0){ + parentNodeMap[dirKey]="true"; } } break;