Reset the form

resetData () {
    Object.assign(this.$data, this.$options.data.call(this));
}
Copy the code

The data method must refer to the current instance, otherwise undefined will appear after calling resetData()