Browse Source

Merge pull request 'fix issue' (#2955) from pretrainmodel into V20220926

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2955
Reviewed-by: chenshihai <chenshh@pcl.ac.cn>
pull/2975/head
chenshihai 2 years ago
parent
commit
155f9d875c
1 changed files with 8 additions and 2 deletions
  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 ID = $(`#accordion${version_name}`).data("jobid");
let repoPath = $(`#accordion${version_name}`).data("repopath"); let repoPath = $(`#accordion${version_name}`).data("repopath");
$(`#log_file${version_name}`).siblings("pre").remove(); $(`#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( $.get(
`/api/v1/repos/${repoPath}/${ID}/log?version_name=${version_name}&base_line=&lines=50&order=asc`, `/api/v1/repos/${repoPath}/${ID}/log?version_name=${version_name}&base_line=&lines=50&order=asc`,
(data) => { (data) => {
@@ -121,7 +121,13 @@ export default async function initCloudrainSow() {
}, 1000); }, 1000);
scrollAnimation(logContentDom, logContentDom.scrollTop, 0); scrollAnimation(logContentDom, logContentDom.scrollTop, 0);
} }
);
).fail((err) => {
$(`#log${version_name} .ui.inverted.active.dimmer`).css(
"display",
"none"
);
throw err;
});
}); });
$(".log_bottom").click(function (e) { $(".log_bottom").click(function (e) {
let version_name = $(this).data("version"); let version_name = $(this).data("version");


Loading…
Cancel
Save