Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.8.1^2
zouap 3 years ago
parent
commit
ee51a420fb
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      templates/repo/modelmanage/index.tmpl

+ 3
- 3
templates/repo/modelmanage/index.tmpl View File

@@ -461,7 +461,7 @@
var zNodes=[];
var nodesMap={};
for (let i=0;i<n_length;i++){
parentNodeMap = nodesMap;
var parentNodeMap = nodesMap;
var fileSplits = data[i].FileName.split("/");
for(let j=0;j < fileSplits.length;j++){
if(fileSplits[j] == ""){
@@ -472,13 +472,13 @@
}
parentNodeMap = parentNodeMap[fileSplits[j]];
}
parentNodeMap = nodesMap;
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]][dirKey]="true";
parentNodeMap[fileSplits[j-1]][dirKey]="true";
}
}
break;


Loading…
Cancel
Save