Skip to content

Commit

Permalink
表格实例切换event不能为空
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzongzhuan committed Nov 8, 2021
1 parent 99c499e commit 7f6c55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/static/ruoyi/js/ry-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7f6c55c

Please sign in to comment.