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

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.code==0){
if(e.data.length>0){ if(e.data.length>0){
me.ajaxData=e.data; me.ajaxData=e.data;
layer.open({ }
title:me.settings.title, layer.open({
area:[me.settings.width+'px',me.settings.height+'px'], title:me.settings.title,
content:me.render(), area:[me.settings.width+'px',me.settings.height+'px'],
type:1, content:me.render(),
success:function(){ type:1,
me.click(); success:function(){
}, me.click();
btn: ['确定'], },
yes: function(idx){ btn: ['确定'],
me.set(); yes: function(idx){
layer.close(idx); me.set();
} layer.close(idx);
}); }
} });
else{
layer.msg('暂无数据');
}
}else{ }else{
layer.msg(e.msg); layer.msg(e.msg);
} }