0👍
You can create a new component that shows the Dashboard
or Auth
components conditionally, then set that as the component for the '/'
path in the routes config.
Something like this:
<template>
<auth v-if="isAuthenticating" />
<dashboard v-else />
</template>
Source:stackexchange.com