<template>
<f7-app v-bind="f7params">
<f7-view
main
url="/"
>
</f7-view>
</f7-app>
</template>
The issue is, whenever i open my app or reload the browser window, checkAuth() does not get executed. It is, however, executed when I click a link within the app, such as /settings/.
Could you please advise me on whether this behavior is intentional and also help me make checkAuth() execute at all times?
I’m using framework7 6.1.0 and framework7-vue 6.1.0.
Example you posted can’t work even in theory, beforeEnter doesn’t accept any arguments in resolve() and can’t open login page in this case Routes | Framework7 Documentation
however there is one peculiar problem: the resolve({ component: HomePage }) branch gets executed, but no redirection takes place. When I replace the if condition with something else (such as true or false) the redirection behaves as expected. Could you please help me with resolving this?
// this was resolved by removing the url=’/’ parameter from my main view and the whole functionality was achieved by swapping async localForage with sync localStorage.