From 00185eefdc79709d1d75578650435710eb263052 Mon Sep 17 00:00:00 2001 From: liaozetao <1107136310@qq.com> Date: Mon, 13 Nov 2023 10:12:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bootstrap-table/js/bootstrap-table.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/assets/plugins/bootstrap-table/js/bootstrap-table.js b/src/assets/plugins/bootstrap-table/js/bootstrap-table.js index 1394649..0a23530 100644 --- a/src/assets/plugins/bootstrap-table/js/bootstrap-table.js +++ b/src/assets/plugins/bootstrap-table/js/bootstrap-table.js @@ -2530,11 +2530,11 @@ }; BootstrapTable.prototype.destroy = function () { - let bootstrapTable = $('div .bootstrap-table'); - if (bootstrapTable.length > 1) { - this.$container = $(bootstrapTable[0]); - this.options.toolbar = $('div.fixed-table-toolbar > div.bars.pull-left').html(); - } + // let bootstrapTable = $('div .bootstrap-table'); + // if (bootstrapTable.length > 1) { + // this.$container = $(bootstrapTable[0]); + // this.options.toolbar = $('div.fixed-table-toolbar > div.bars.pull-left').html(); + // } this.$el.insertBefore(this.$container); $(this.options.toolbar).insertBefore(this.$el); this.$container.next().remove(); @@ -2789,10 +2789,10 @@ throw new Error("Unknown method: " + option); } - if (!data && option === 'destroy') { - new BootstrapTable(this, options).destroy(); - return; - } + // if (!data && option === 'destroy') { + // new BootstrapTable(this, options).destroy(); + // return; + // } if (!data) { return;