Properly clearing the create product fuel, after creating

apparently we cannot  Deep Clone using Object.assign({}, obj);
This commit is contained in:
Chad Derya
2019-09-09 15:21:37 +01:00
parent c7d3ce9a99
commit 353fc9b39c

View File

@@ -169,6 +169,7 @@ export default {
this.fetchData(id)
} else {
this.postForm = Object.assign({}, defaultForm)
this.postForm.meta = Object.assign({}, defaultForm.meta)
}
// Why need to make a copy of this.$route here?