diff --git a/web_src/js/features/cloudbrainShow.js b/web_src/js/features/cloudbrainShow.js index b463eafd8..affae8f8f 100644 --- a/web_src/js/features/cloudbrainShow.js +++ b/web_src/js/features/cloudbrainShow.js @@ -41,6 +41,7 @@ export default async function initCloudrainSow() { if (data.Lines == 0) { if (max) { $("body").toast({ + class: "black", message: `您已翻阅至日志底部,请稍后再试!`, }); } else { @@ -87,6 +88,7 @@ export default async function initCloudrainSow() { if (data.Lines == 0) { if (max) { $("body").toast({ + class: "black", message: `您已翻阅至日志顶部,请稍后再试!`, }); } else { @@ -165,6 +167,7 @@ export default async function initCloudrainSow() { if (data.Lines == 0) { if (max) { $("body").toast({ + class: "black", message: `您已翻阅至日志顶部,请稍后再试!`, }); } else { @@ -244,6 +247,7 @@ export default async function initCloudrainSow() { if (data.Lines == 0) { if (max) { $("body").toast({ + class: "black", message: `您已翻阅至日志底部,请稍后再试!`, }); } else { @@ -278,7 +282,8 @@ export default async function initCloudrainSow() { }); let test = $(`#log_file${version_name}`).nextAll(); - $(`#log${version_name} input[name=init_log]`).val(test[0].innerHTML); + test.length !== 0 && + $(`#log${version_name} input[name=init_log]`).val(test[0].innerHTML); scrollAnimation( logContentDom,