authenticated.js 169 B

12345678
  1. export default function ({ isServer, store, req, redirect }) {
  2. if (isServer && !req) return
  3. if (!store.state.option.isLogin.data) {
  4. return redirect('/')
  5. }
  6. }