From c15be9773ecae5e3d2260cc7b363336d78653cf0 Mon Sep 17 00:00:00 2001 From: Karson Date: Fri, 14 Sep 2018 08:25:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dajax=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=85=88=E5=88=B7=E6=96=B0=E5=90=8E=E6=89=A7=E8=A1=8C=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/js/backend.js | 4 +++- public/assets/js/require-backend.min.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/public/assets/js/backend.js b/public/assets/js/backend.js index 227d6ec9..67fb2e12 100755 --- a/public/assets/js/backend.js +++ b/public/assets/js/backend.js @@ -195,7 +195,9 @@ define(['fast', 'template', 'moment'], function (Fast, Template, Moment) { } //如果未设备成功的回调,设定了自动刷新的情况下自动进行刷新 if (!success && typeof options.tableId !== 'undefined' && typeof options.refresh !== 'undefined' && options.refresh) { - $("#" + options.tableId).bootstrapTable('refresh'); + success = function () { + $("#" + options.tableId).bootstrapTable('refresh'); + } } if (typeof options.confirm !== 'undefined') { Layer.confirm(options.confirm, function (index) { diff --git a/public/assets/js/require-backend.min.js b/public/assets/js/require-backend.min.js index 4248e912..5d34cd25 100644 --- a/public/assets/js/require-backend.min.js +++ b/public/assets/js/require-backend.min.js @@ -5421,7 +5421,9 @@ define('backend',['fast', 'template', 'moment'], function (Fast, Template, Momen } //如果未设备成功的回调,设定了自动刷新的情况下自动进行刷新 if (!success && typeof options.tableId !== 'undefined' && typeof options.refresh !== 'undefined' && options.refresh) { - $("#" + options.tableId).bootstrapTable('refresh'); + success = function () { + $("#" + options.tableId).bootstrapTable('refresh'); + } } if (typeof options.confirm !== 'undefined') { Layer.confirm(options.confirm, function (index) {