From 29b4628b9014f27b4c2f1d8c3ab89c659b79dd18 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 8 Aug 2022 10:56:13 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/modelmanage/index.tmpl b/templates/repo/modelmanage/index.tmpl index 567ff8dc7..9e741cf2d 100644 --- a/templates/repo/modelmanage/index.tmpl +++ b/templates/repo/modelmanage/index.tmpl @@ -475,7 +475,7 @@ 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]]).length ==0){ + if(Object.keys(parentNodeMap[fileSplits[j-1]]).length ==0){ parentNodeMap[fileSplits[j]][dirKey]="true"; } }