Answer the question
In order to leave comments, you need to log in
How to pass variable value from App.vue to main.js?
I can’t find how in this case to pass the value from the variable in App.vue to the function located in main.js
Answer the question
In order to leave comments, you need to log in
Make the code honyom.
Take out authorization in a separate component, like all normal people. And the vuex store , for authorization data, too, by the way.
Use a common js module to save and retrieve the key and write in it saving (retrieving) to / from localstorage.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question