authenticated.js 185 B

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