vue初始化页面的data

在写新增编辑页面的时候,有些情况需要把页面的data全部初始化还原到新增的时候,

Object.assign(this.$data, this.$options.data());