export default {
  mode: () => import('./app'),
  apiToken: 'token',
  loginAuth(route, { user }) {
    if (route.needLogin && !user.login) return true;
    return true;
  },
  tabs: [
    { key: 'main', name: '首页', path: '/' },
    { key: 'ready', name: 'GetReady', path: '/ready' },
    { key: 'exercise', name: '练习', path: '/exercise' },
    { key: 'examination', name: 'CAT模考', path: '/examination' },
    { key: 'questions', name: '题库', path: '/questions' },
    { key: 'textbook', name: '换库机经', path: '/textbook' },
    { key: 'course', name: '课堂', path: '/course' },
  ],
};