auth.js 241 B

12345678910
  1. export default function({store, redirect}) {
  2. const isAuth = store.getters['auth/isAuthenticated']
  3. if (!isAuth) {
  4. // navigate later to notAuthenticated page
  5. // return redirect('/')
  6. return redirect('/notAuthenticated')
  7. }
  8. }