Browse Source

fix issue 2561

tags/v1.22.8.1^2
zhoupzh 3 years ago
parent
commit
58c37b1259
2 changed files with 9 additions and 4 deletions
  1. +8
    -3
      templates/repo/modelmanage/showinfo.tmpl
  2. +1
    -1
      web_src/js/features/cloudbrainShow.js

+ 8
- 3
templates/repo/modelmanage/showinfo.tmpl View File

@@ -440,9 +440,14 @@ function renderBrend(ID,version_name,parents,filename,init){
}else{
$('input[name=model]').val(parents)
$('input[name=modelbac]').val(filename)
$('#file_breadcrumb a.section:contains(${filename})').nextAll().remove()
$('#file_breadcrumb a.section:contains(${filename})').replaceWith(`<div class='active section'>${filename}</div>`)
$('#file_breadcrumb div.section:contains(${filename})').append("<div class='divider'> / </div>")
let selectEle = $('#file_breadcrumb a.section').filter(
(index, item) => {
return item.text == filename;
}
);
selectEle.nextAll().remove();
selectEle.after("<div class='divider'> / </div>");
selectEle.replaceWith(`<div class='active section'>${filename}</div>`);
}
}


+ 1
- 1
web_src/js/features/cloudbrainShow.js View File

@@ -322,8 +322,8 @@ export default async function initCloudrainSow() {
}
);
selectEle.nextAll().remove();
selectEle.after("<div class='divider'> / </div>");
selectEle.replaceWith(`<div class='active section'>${filename}</div>`);
selectEle.append("<div class='divider'> / </div>");
}
}



Loading…
Cancel
Save