2020-04-29 10:30:35 +02:00
|
|
|
export default async function ({ store, redirect }) {
|
2020-04-30 10:52:14 +02:00
|
|
|
await store.dispatch('auth/inspectToken')
|
2020-04-29 10:30:35 +02:00
|
|
|
|
2020-04-28 21:00:23 +02:00
|
|
|
if (!store.state.auth.isLogin) {
|
|
|
|
return redirect('/')
|
|
|
|
}
|
|
|
|
}
|