E
E
EgorKorol2018-01-16 17:48:01
JavaScript
EgorKorol, 2018-01-16 17:48:01

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
5a5e106106e27866327827.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Riley Usagi, 2018-01-16
@RileyUsagi

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.

I
Ilya Bobkov, 2018-01-16
@heksen

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 question

Ask a Question

731 491 924 answers to any question