If you want to clear the data in Vue, the error may be the reason why you haven’t changed the direction of this. You can try to change the direction of this with call, for example
Object.assign(this.$data, this.$options.data.call(this))
If you just want to know one of the data, you can use it
this.xxx=this.$options.data.call(this).xxxx
Read More:
- What are the common clearing commands in MATLAB?
- The influence of the loading order of props, data and computed in Vue
- Linux’s method of clearing DNS cache and refreshing DNS in shell terminal (Ubuntu, Debian)
- Vue error in mounted hook: “typeerror: object (…) is not a function“
- Solve the problem that data cannot be input in idea console
- Django + jQuery get data in the form + Ajax send data
- Trivia: How does R language solve Error in ts(x):’ts’ object must have one or more observations
- No data: data: get host by name failed in TCP_ Connect() error resolution
- Problems and solutions of error reporting in using swiper in Vue
- How to Solve Vue Command Not Work Issue in win7_64
- How to solve the cross domain problem of Axios in Vue project
- To solve the problem of failed to load: data in HTML5 game running rmmv locally/ actors.json problem
- How to Fix Sklearn ValueError: This solver needs samples of at least 2 classes in the data, but the data
- Ubuntu: Failed to initialize compiler: object java.lang.Object In compiler mirror not found
- [MySQL] [serialize] [error record] after modifying data, no data will be returned (in fact, MySQL does not support it)
- Inconsistency between adapter data and UI data after dragging recyclerview (data disorder)
- Register global time filter in main.js in Vue
- Solve the problem of “error empty block statement no empty” in the console (Vue project)
- How to Fix “the data of store is lost after Vue refreshes the page”
- Googlenet Error: ‘GoogLeNetOutputs‘ object has no attribute ‘data‘