index.js 893 B

123456789101112131415161718192021222324252627
  1. export default {
  2. mode: () => import('./app'),
  3. apiToken: 'token',
  4. loginPath: '/',
  5. loginAuth(route, { user }) {
  6. if (route.needLogin && !user.login) return false;
  7. return true;
  8. },
  9. tabs: [
  10. { key: 'main', name: '首页', path: '/' },
  11. { key: 'ready', name: 'GetReady', path: '/ready' },
  12. { key: 'exercise', name: '练习', path: '/exercise' },
  13. { key: 'examination', name: 'CAT模考', path: '/examination' },
  14. { key: 'question', name: '题库', path: '/question' },
  15. { key: 'textbook', name: '换库机经', path: '/textbook' },
  16. {
  17. key: 'course',
  18. name: '课堂',
  19. path: '/course',
  20. children: [
  21. { key: 'course', name: '在线课堂', path: '/course' },
  22. { key: 'data', name: '原创资料', path: '/course/data' },
  23. { key: 'experience', name: '学员表现', path: '/course/experience' },
  24. ],
  25. },
  26. ],
  27. };