From 6a60330adc3e863d870db167fa1e0a1d9cf6a78d Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 8 Aug 2022 10:04:51 +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 4d02a8e21..c42f1ba7b 100644 --- a/templates/repo/modelmanage/index.tmpl +++ b/templates/repo/modelmanage/index.tmpl @@ -463,7 +463,7 @@ parentNodeMap = nodesMap; var fileSplits = data[i].FileName.split("/"); for(let j=0;j < fileSplits.length;j++){ - if(fileSplits[j] == "" && !(data[i].FileName[data[i].FileName.length - 1]=="/")){ + if(fileSplits[j] == ""){ break; } if(parentNodeMap[fileSplits[j]] == null){