authenticated.js 305 B

12345678910
  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. console.log(store.state.option.isLogin.data.content.isLogin + '111')
  6. return redirect('/')
  7. }
  8. }