NavigateTo('/path') navigating but not displaying path
Hi, I'm trying to setup the auth in my app, I can succesfully redirect the user when he logs in from '/login' to '/' but the site is blank unless I refresh.
4 Replies
https://github.com/marcop96/shortener/blob/master/middleware/auth.js here's the auth middleware
https://github.com/marcop96/shortener/blob/master/pages/login.vue here im using it
https://github.com/marcop96/shortener/blob/master/pages/index.vue here's index,
cannot seem to find a way to make it display the site without a refresh, it's pretty annoying
also tried adding nextTick() or a timeout just in case it was trying to load before the user was there or something like this, but it didn't work
You have a template inside a template in your
index.vue
pagetried everything I saw on the docs and internet, missed this lol, thanks so much
Welcome