Vue resets the objects defined in data

When there are too many object attributes in data, it is too troublesome to empty them one by one

How to use

this.defaultObj = this.$options.data().defaultObj

key code

 this.$options.data()

Guess you like

Origin blog.csdn.net/weixin_43743175/article/details/127506705