Properly clearing the create product fuel, after creating
apparently we cannot Deep Clone using Object.assign({}, obj);
This commit is contained in:
parent
c7d3ce9a99
commit
353fc9b39c
|
@ -169,6 +169,7 @@ export default {
|
||||||
this.fetchData(id)
|
this.fetchData(id)
|
||||||
} else {
|
} else {
|
||||||
this.postForm = Object.assign({}, defaultForm)
|
this.postForm = Object.assign({}, defaultForm)
|
||||||
|
this.postForm.meta = Object.assign({}, defaultForm.meta)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Why need to make a copy of this.$route here?
|
// Why need to make a copy of this.$route here?
|
||||||
|
|
Loading…
Reference in New Issue