Vue.js, refresh the page and the data in data will be restored.
data(){
return {
value: "",
}
},
I have a component"s data data value,. When I"m in this component, I use button events to add data to it
click_btn(){
this.value = this.value + "123"
}
but when I refresh the browser page, it reverts to the previous empty string. How to solve this problem?