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

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

View File

@ -37,6 +37,7 @@ 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({ layer.open({
title:me.settings.title, title:me.settings.title,
area:[me.settings.width+'px',me.settings.height+'px'], area:[me.settings.width+'px',me.settings.height+'px'],
@ -51,10 +52,6 @@ layui.define(['layer'],function(exports){
layer.close(idx); layer.close(idx);
} }
}); });
}
else{
layer.msg('暂无数据');
}
}else{ }else{
layer.msg(e.msg); layer.msg(e.msg);
} }