第一种:全部重置
Object.assign(this.$data,this.$options.data.call(this))
第二种:重置某个值。
例如重置data里面的form值
this.form = this.$options.data.call(this).form
Object.assign(this.$data,this.$options.data.call(this))
例如重置data里面的form值
this.form = this.$options.data.call(this).form