#2955 fix issue

Merged
chenshihai merged 4 commits from pretrainmodel into V20220926 1 year ago
  1. +8
    -2
      web_src/js/features/cloudbrainShow.js

+ 8
- 2
web_src/js/features/cloudbrainShow.js View File

@@ -106,7 +106,7 @@ export default async function initCloudrainSow() {
let ID = $(`#accordion${version_name}`).data("jobid");
let repoPath = $(`#accordion${version_name}`).data("repopath");
$(`#log_file${version_name}`).siblings("pre").remove();
$(".ui.inverted.active.dimmer").css("display", "block");
$(`#log${version_name} .ui.inverted.active.dimmer`).css("display", "block");
$.get(
`/api/v1/repos/${repoPath}/${ID}/log?version_name=${version_name}&base_line=&lines=50&order=asc`,
(data) => {
@@ -121,7 +121,13 @@ export default async function initCloudrainSow() {
}, 1000);
scrollAnimation(logContentDom, logContentDom.scrollTop, 0);
}
);
).fail((err) => {
$(`#log${version_name} .ui.inverted.active.dimmer`).css(
"display",
"none"
);
throw err;
});
});
$(".log_bottom").click(function (e) {
let version_name = $(this).data("version");


Loading…
Cancel
Save