1
0
mirror of synced 2024-11-22 13:26:06 +03:00

Adds a hydrate command on mounted too

This commit is contained in:
Justin Schroeder 2018-02-01 13:15:41 -05:00
parent 7694e85454
commit 3b7f03388b
2 changed files with 4 additions and 1 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -73,6 +73,9 @@ export default {
created () { created () {
this.hydrate(this.initial) this.hydrate(this.initial)
}, },
mounted () {
this.hydrate(this.initial)
},
methods: { methods: {
registerField (field, data) { registerField (field, data) {
this.$store.commit(`${this.m}setFieldMeta`, {form: this.name, field, data}) this.$store.commit(`${this.m}setFieldMeta`, {form: this.name, field, data})