|
|
@@ -2,7 +2,9 @@
|
|
|
export default function ({ isServer, store, req, redirect }) {
|
|
|
if (isServer && !req) return
|
|
|
|
|
|
- if (!store.state.option.isLogin.logged) {
|
|
|
+ // if (!store.state.option.isLogin.logged) {
|
|
|
+ if (!store.state.option.isLogin.data.content.isLogin) {
|
|
|
+ console.log(store.state.option.isLogin.data.content.isLogin + '111')
|
|
|
return redirect('/')
|
|
|
}
|
|
|
}
|