This commit is contained in:
BianLzhaoMin 2025-05-13 15:10:11 +08:00
parent 8e2a6b8ce5
commit 4dac8c2a00
1 changed files with 2 additions and 3 deletions

View File

@ -925,7 +925,6 @@ function getScrollData(id) {
let scrollBox = $(".content-wrapper"); let scrollBox = $(".content-wrapper");
let innerHtml = ""; let innerHtml = "";
if (data && data.length > 0) { if (data && data.length > 0) {
$(".scroll-box").show();
data.forEach((item) => { data.forEach((item) => {
let describeHtml = ""; let describeHtml = "";
if (item.spanType === "跨线路") { if (item.spanType === "跨线路") {
@ -963,11 +962,11 @@ function getScrollData(id) {
</div> </div>
`; `;
}); });
$(".scroll-box").show();
scrollBox.html(innerHtml);
} else { } else {
$(".scroll-box").hide(); $(".scroll-box").hide();
} }
scrollBox.html(innerHtml);
}, },
function (xhr) { function (xhr) {
error(xhr); error(xhr);