Browse Source

fix issue

tags/v1.22.9.2^2
zhoupzh 3 years ago
parent
commit
247dc9051d
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      web_src/js/features/cloudbrainShow.js

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

@@ -130,11 +130,14 @@ export default async function initCloudrainSow() {
let repoPath = $(`#accordion${version_name}`).data("repopath");
$(`#log_file${version_name}`).siblings("pre").remove();
let end_line = $(`#log${version_name} input[name=end_line]`).val();
$(".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=desc`,
(data) => {
$(".ui.inverted.active.dimmer").css("display", "none");
$(`#log${version_name} .ui.inverted.active.dimmer`).css(
"display",
"none"
);
if (!data.CanLogDownload) {
$(`#${version_name}-log-down`)
.removeClass("ti-download-file")


Loading…
Cancel
Save