import router from './router'
import AuthDao from './dao/auth'

const whiteList = []
router.beforeEach((to, from, next) => {
  if (whiteList.includes(to.path)) {
    // 在免登录白名单，直接进入
    next()
  } else {
    next()
    // const parentId = map_config.SYS_ID;
    // AuthDao.queryMenu({
    //   params: {parentId, isRecursion: true}
    // }).then(res => {
    //   let routes = res.data.content
    //   for (let route of routes) {
    //     if (route.url === to.path) {
    //       next()
    //     }
    //   }
    // });
  }
})


