authenticated.js 232 B

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