index.js 610 B

1234567891011121314151617
  1. export default {
  2. mode: () => import('./app'),
  3. apiToken: 'token',
  4. loginAuth(route, { user }) {
  5. if (route.needLogin && !user.login) return true;
  6. return true;
  7. },
  8. tabs: [
  9. { key: 'main', name: '首页', path: '/' },
  10. { key: 'ready', name: 'GetReady', path: '/ready' },
  11. { key: 'exercise', name: '练习', path: '/exercise' },
  12. { key: 'examination', name: 'CAT模考', path: '/examination' },
  13. { key: 'questions', name: '题库', path: '/questions' },
  14. { key: 'textbook', name: '换库机经', path: '/textbook' },
  15. { key: 'course', name: '课堂', path: '/course' },
  16. ],
  17. };