pull/54/merge
meihangbo 2024-09-17 06:17:45 +00:00 committed by GitHub
commit 7e81221abf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1072,7 +1072,7 @@ layer.prompt = function(options, yes){
var value = prompt.val();
if(value === ''){
prompt.focus();
} else if(value.length > (options.maxlength||500)) {
} else if(value&&value.length > (options.maxlength||500)) {
layer.tips('最多输入'+ (options.maxlength || 500) +'个字数', prompt, {tips: 1});
} else {
yes && yes(value, index, prompt);