Kaynağa Gözat

修改个人完成注册和企业完成注册的页面调整

Administrator 7 yıl önce
ebeveyn
işleme
2c18b78b8f
2 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. 1 1
      middleware/authenticated.js
  2. 0 1
      store/index.js

+ 1 - 1
middleware/authenticated.js

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

+ 0 - 1
store/index.js

@@ -7,7 +7,6 @@ export const actions = {
     // 检查设备类型
     const userAgent = isServer ? req.headers['user-agent'] : navigator.userAgent
     const isMobile = /(iPhone|iPod|Opera Mini|Android.*Mobile|NetFront|PSP|BlackBerry|Windows Phone)/ig.test(userAgent)
-
     const cookie = isServer ? req.headers['cookie'] : null
     store.commit('option/SET_MOBILE_LAYOUT', isMobile)
     store.commit('option/SET_USER_AGENT', userAgent)