[Vuejs]-Vue: update a value in data() from import

0👍

Since uid is most probably a string, it is copied and not shared by reference. For the authentication to update the value in the component, pass the user object itself so that the same object is shared between both files.

Leave a comment