Verify all no need to be async.

This commit is contained in:
NI
2019-08-29 16:12:12 +08:00
parent 9257bd40c3
commit e82722d424

View File

@@ -415,11 +415,11 @@ export default {
return field.verified;
},
async verifyAll() {
verifyAll() {
let verified = true;
for (let i in this.current.fields) {
if (await this.verify(i, this.current.fields[i], true)) {
if (this.verify(i, this.current.fields[i], true)) {
continue;
}
@@ -437,7 +437,7 @@ export default {
return;
}
if (!(await this.verifyAll())) {
if (!this.verifyAll()) {
return;
}