pull/1056/head
贤心 2 years ago
parent 9dc31fa032
commit ab940e5df3

@ -2255,12 +2255,13 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
args[3] = 'reloadData';
// 过滤与数据无关的参数
var dataParams = [
var dataParams = new RegExp('^('+ [
'data', 'url', 'where', 'page', 'limit',
'request', 'response', 'parseData'
];
].join('|') + ')$');
layui.each(args[1], function (key, value) {
if(dataParams.indexOf(key) === -1){
if(!dataParams.test(key)){
delete args[1][key];
}
});

Loading…
Cancel
Save