diff --git a/docs/zh-cn/async.md b/docs/zh-cn/async.md index 228a0ba..976f701 100644 --- a/docs/zh-cn/async.md +++ b/docs/zh-cn/async.md @@ -41,10 +41,10 @@ ValidationError.prototype.constructor = ValidationError // exmpale with ES2015 export default { - validators: { - data () { + data () { return { checking: false } - }, + }, + validators: { exist (val) { this.vm.checking = true // spinner on return fetch('/validations/exist', {