Skip to content
This repository was archived by the owner on Dec 25, 2017. It is now read-only.

Commit 94ccd3a

Browse files
fbwfbikazupon
authored andcommitted
📝 docs(gitbook): fix data option (#305)
data属性应该是属于vue实例的,而不是validators选项
1 parent 01b1175 commit 94ccd3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/zh-cn/async.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ ValidationError.prototype.constructor = ValidationError
4141

4242
// exmpale with ES2015
4343
export default {
44-
validators: {
45-
data () {
44+
data () {
4645
return { checking: false }
47-
},
46+
},
47+
validators: {
4848
exist (val) {
4949
this.vm.checking = true // spinner on
5050
return fetch('/validations/exist', {

0 commit comments

Comments
 (0)