This commit is contained in:
walkor 2022-12-10 20:21:32 +08:00
parent 3a3586bd27
commit 4d9fb9c260

View File

@ -6,7 +6,7 @@ function toggleSearchFormShow()
let $ = layui.$;
let items = $('.top-search-from .layui-form-item');
if (items.length <= 2) {
if (items.length <= 1) $('.top-search-from').remove();
if (items.length <= 1) $('.top-search-from').parent().parent().remove();
return;
}
let btns = $('.top-search-from .toggle-btn a');