优化:综合浏览前端事件监听中判断逻辑调整为严格模式

master
Guo XIn 1 year ago
parent a5113a829c
commit 0efbcae3e3
  1. 2
      shandan-browser/src/main/resources/static/js/meta_search.js

@ -195,7 +195,7 @@ layui.use(['dropdown', 'gtable', 'laydate', 'form'], function () {
let id = $(this).data('id'); let id = $(this).data('id');
$condition_list.find(`li[id="li_${id}"]`).remove(); $condition_list.find(`li[id="li_${id}"]`).remove();
$condition_list.find(`li:first a[name="${LOGIC_JOIN}"]`).addClass("layui-hide").data('value', 'and'); $condition_list.find(`li:first a[name="${LOGIC_JOIN}"]`).addClass("layui-hide").data('value', 'and');
if ($condition_list.find('li').length == 0) { if ($condition_list.find('li').length === 0) {
$condition_list.find('p.condition-none').removeClass('layui-hide'); $condition_list.find('p.condition-none').removeClass('layui-hide');
} }
}); });