表格实例切换event不能为空

pull/342/head
RuoYi 2021-11-08 15:32:57 +08:00
parent d005057c98
commit ceba6a91f0
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ var table = {
options: {},
// 设置实例配置
set: function(id) {
if($.common.getLength(table.config) > 1) {
if($.common.getLength(table.config) > 1 && $.common.isNotEmpty(event)) {
var tableId = $.common.isEmpty(id) ? $(event.currentTarget).parents(".bootstrap-table").find("table.table").attr("id") : id;
if ($.common.isNotEmpty(tableId)) {
table.options = table.get(tableId);