in fact, there are two questions, please advise
1: vuex dispatch getUserInfo, normally no problem, after refreshing the page, there is no way to get the data. Is there any way to solve this problem and save the local cache? no, no, no. If you save the local cache. Then why use vuex.
2: it is also a problem with vuex. I use .mapGetters (["getUserInfo"]) to jump to the page in computed, the data is normal, but use
computed: {
getUserInfo:function(){
return this.$store.getters.getUserInfo
}
}
this is empty. Please tell me the difference between the mapGetters mapping and the this.$store method
Thank you all for your advice.