RuoYi 两个table公用一个 form 的onclick=“$.table.search()搜索

RuoYi 两个table公用一个 form 的onclick=“$.table.search()搜索

<a class="btn btn-primary btn-rounded btn-sm" onclick="ff()"><i class="fa fa-search"></i>&nbsp;搜索</a>
function ff(){
            $.table.search('formId1', 'bootstrap-table1')
            $.table.search('formId2', 'bootstrap-table2')
        }

但是搜索没有效果,只能搜索第一个table