关键字为空时,创建时的关键词获取问题修复。

This commit is contained in:
hdm 2022-06-01 12:20:16 +08:00
parent 3cc6b91996
commit 832f8e3a98

View File

@ -37,24 +37,21 @@ layui.define(['layer'],function(exports){
if(e.code==0){
if(e.data.length>0){
me.ajaxData=e.data;
layer.open({
title:me.settings.title,
area:[me.settings.width+'px',me.settings.height+'px'],
content:me.render(),
type:1,
success:function(){
me.click();
},
btn: ['确定'],
yes: function(idx){
me.set();
layer.close(idx);
}
});
}
else{
layer.msg('暂无数据');
}
}
layer.open({
title:me.settings.title,
area:[me.settings.width+'px',me.settings.height+'px'],
content:me.render(),
type:1,
success:function(){
me.click();
},
btn: ['确定'],
yes: function(idx){
me.set();
layer.close(idx);
}
});
}else{
layer.msg(e.msg);
}