data中数据恢复初始状态
Object.assign(this.$data, this.$options.data())
只重置data中的某一个对象或者属性:
this.form = this.$options.data().form
data中数据恢复初始状态
Object.assign(this.$data, this.$options.data())
只重置data中的某一个对象或者属性:
this.form = this.$options.data().form