how to dynamically assign the head title in vue?
I wanted that when the openAddMenu method was called, the title in nuxt.config.js would be dynamically changed with the value “newTitle”.
When I refresh the page, my “center” variable is null, but when I log in, my “center” variable displays the values correctly
How can I fix the code to prevent this from happening?
We enter and log in and the text and logo appears in the top right corner, we refresh and it disappears.
I think it’s because generally, when the login is successful, the user information needs to be transferred. However, when the page is refreshed, the data in Vuex is reinitialized, causing data loss.