diff --git a/src/permission.js b/src/permission.js
index 3b602e2b03e9924e41c21886329959d89bf7721c..6654a8e5d7ce2dae8a020e189a15efafa10da643 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -11,18 +11,15 @@ NProgress.configure({ showSpinner: false })
 const whiteList = ['/login','/platformlogin','/', '/auth-redirect', '/bind', '/register']
 
 router.beforeEach((to, from, next) => {
-  //debugger
+  // debugger
   NProgress.start()
   const hasToken = getToken()
   // console.log("getToken()",getToken())
   if (hasToken) {
-    
     getPageTitle()
 
-    //
     /* has token*/
     if (to.path === '/platformlogin') {
-        // return false
       next({ path: '/home/index' })
       NProgress.done()
     } else {
@@ -30,21 +27,22 @@ router.beforeEach((to, from, next) => {
         //debugger
         // 判断当前用户是否已拉取完user_info信息
         store.dispatch('GetInfo').then(res => {
-          // return false
           // 拉取user_info
           const roles = res.data.roles
-          //debugger
+          // debugger
+          const userInfo = res.data.user
           store.dispatch('GenerateRoutes', { roles }).then(accessRoutes => {
-          // 测试 默认静态页面
-          // store.dispatch('permission/generateRoutes', { roles }).then(accessRoutes => {
             // 根据roles权限生成可访问的路由表
-            router.addRoutes(accessRoutes) // 动态添加可访问路由表
-            next({ ...to, replace: true }) // hack方法 确保addRoutes已完成
+            router.addRoutes(accessRoutes)
+            if (userInfo && userInfo.state == 1) {
+              next({ ...to, replace: true }) // hack方法 确保addRoutes已完成
+            } else {
+              next({path:'/process',replace: true});
+            }
           })
         }).catch(err => {
             store.dispatch('FedLogOut').then(() => {
               Message.error(err)
-              //debugger
               next({ path: '/home/index' })
             })
           })
@@ -60,16 +58,13 @@ router.beforeEach((to, from, next) => {
       }
     }
   } else {
-    //debugger
     // 没有token
+    // 在免登录白名单,直接进入
     if (whiteList.indexOf(to.path) !== -1) {
-      console.log("在免登录白名单,直接进入")
       // 在免登录白名单,直接进入
       next()
     } else {
-      //debugger
       next(`/login?redirect=${to.path}`) // 否则全部重定向到登录页
-      // next(`/newyuncang?redirect=${to.path}`) // 否则全部重定向到登录页
       NProgress.done()
     }
   }