Form: fix async validate bug

pull/7838/head
Allenice 2017-10-27 11:09:22 +08:00 committed by 杨奕
parent 476d1c4f6e
commit 468124f956
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@
if (typeof callback !== 'function' && window.Promise) {
promise = new window.Promise((resolve, reject) => {
callback = function(valid) {
resolve(valid);
valid ? resolve(valid) : reject(valid);
};
});
}