[Vuejs]-Node.js and Vue.js, why Refresh make vue.js's store clear? And how can i use uploaded image in vue.js?

0๐Ÿ‘

โœ…

@samayo is right.One question per post.So of course when the page refresh the store is refreshed.So if you dont want that you can use plugin like vuex-persistedstate.Or if you want to keep the token and the user that is currently logged then when the user logged in,use localstorage to save the token and the user.Or cookies.Or session storage.You have many options

Leave a comment