1
0
mirror of synced 2024-11-25 14:56:03 +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 () {
this.hydrate(this.initial)
},
mounted () {
this.hydrate(this.initial)
},
methods: {
registerField (field, data) {
this.$store.commit(`${this.m}setFieldMeta`, {form: this.name, field, data})