修改nick-validator通过Remote验证通过时的消息提示,判断是否提示消息

pull/125/head
coolwhg 2019-06-04 15:25:46 +08:00
parent 843a10fadd
commit e5e3897374
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ define(['jquery', 'bootstrap', 'upload', 'validator'], function ($, undefined, U
},
dataFilter: function (data) {
if (data.code === 1) {
return "";
return data.msg ? { "ok": data.msg } : '';
} else {
return data.msg;
}