Home > front end >  Vue real-time access to data between the two child components
Vue real-time access to data between the two child components

Time:10-28

Use vue project, navigation has logged in, the head is common components, existing a other components, the contents of this component without login can also browse, key steps need to login, after login identity according to the different components within the show hidden elements, problems, in the current login page, the page can not be real-time access to login user id, because information and login component is not Shared, existed only in the state management after the success of the login user token and information, state management with the store,
Passing by the great god, please help to have a look

CodePudding user response:

Has solved the problem
  • Related