N
Nuxt7mo ago
diez

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
diez
diezOP7mo ago
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
pyplacca
pyplacca7mo ago
You have a template inside a template in your index.vue page
diez
diezOP7mo ago
tried everything I saw on the docs and internet, missed this lol, thanks so much
pyplacca
pyplacca7mo ago
Welcome
Want results from more Discord servers?
Add your server