How to solve the problem of browser caching data () in vue.js?

as shown in the figure below, the data object property of this vue will come with its own initial value no matter whether it is initialized or not, no matter how it is refreshed. How can this be avoided?

clipboard.png

Mar.11,2021

this pot is not Vue, please disable browsing to automatically fill out the form and save the password.


you set the initial values for these two form fields


pay attention to the small key button in the upper right corner of the browser, click to cancel automatically save the password.

Menu