And when I start my app on a URL that requiresAuth, if I'm not logged in it tries to display the modal, which fails.
If I first login and do things, the modal is usable as normal because I use it for other purposes such as asking confirmation before a delete.
How can I solve this problem here ? Since it doesn't seem to be able to find v-app properly I think ?
Hello there !
I have a
beforeEach
statement in my vue router that does this :With the
WarningModal
modal being :And when I start my app on a URL that requiresAuth, if I'm not logged in it tries to display the modal, which fails. If I first login and do things, the modal is usable as normal because I use it for other purposes such as asking confirmation before a delete.
How can I solve this problem here ? Since it doesn't seem to be able to find v-app properly I think ?