You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
export default function ({ redirect, store }) {
|
|
// eslint-disable-next-line no-unneeded-ternary
|
|
const isAuthenticated = store.state.auth.user ? true : false
|
|
if (!isAuthenticated) {
|
|
redirect({ name: 'auth' })
|
|
}
|
|
}
|