routes.js 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. //import Login from '@/view/login'
  2. //import ServerSideLogin from '@/view/serverside/login'
  3. // import HTTP404 from '@/view/404'
  4. import Index from '@/view/resource/index'
  5. import Indexarea from '@/view/resource/indexarea.vue'
  6. import Indexschool from '@/view/resource/indexschool.vue'
  7. import Synch from '@/view/resource/resourceindex/synchronization.vue'
  8. import Library from '@/view/resource/resourceindex/library.vue'
  9. import Details from '@/view/resource/resourceindex/details.vue'
  10. import Videodetails from '@/view/resource/resourceindex/videodetails.vue'
  11. import Activity from '@/view/resource/activity'
  12. import ActivityGuide from '@/view/resource/activity_guide.vue'
  13. import ActivityShow from '@/view/resource/activity_show.vue'
  14. import ActivityRank from '@/view/resource/activity_rank.vue'
  15. import ActivityCertificate from '@/view/resource/activity_certificate.vue'
  16. import ActivityDetails from '@/view/resource/activity_details.vue'
  17. import Login from '@/view/resource/login.vue'
  18. import HomePage from '@/view/resource/HomePage'
  19. import Teacher from '@/view/resource/Teacher'
  20. import TeacherZone from '@/view/resource/TeacherZone'
  21. //import { resolve } from 'url';
  22. import ZonesHome from '../components/resource/ZonesHome.vue'
  23. import TeacherWork from '../components/resource/TeacherWork.vue'
  24. import TeachDetails from '../components/resource/TeachDetails.vue'
  25. import TeachVideos from '../components/resource/TeacherVideos.vue'
  26. import TeachSource from '../components/resource/TeachSource.vue'
  27. import TeachResearch from '../components/resource/TeachResearch.vue'
  28. import TeachTopic from '../components/resource/TeachTopic.vue'
  29. import TeachActivies from '../components/resource/TeachActivies.vue'
  30. import TeachClass from '../components/resource/TeachClass.vue'
  31. import TeachTopclass from '../components/resource/TeachTopclass.vue'
  32. import text from '../components/resource/text.vue'
  33. export const routes = [
  34. { name: 'index', path: '/', redirect: "/HomePage", component: Index },
  35. { name: 'resource', path: '/resource', component: Index },
  36. { name: 'indexarea', path: '/arearesource', component: Indexarea },
  37. { name: 'Indexschool', path: '/schoolresource', component: Indexschool },
  38. { name: 'synch', path: '/synch', component: Synch },
  39. { name: 'library', path: '/library', component: Library },
  40. { name: 'details', path: '/details', component: Details },
  41. { name: 'videodetails', path: '/videodetails', component: Videodetails },
  42. { name: 'activity', path: '/activity', component: Activity },
  43. { name: 'ActivityGuide', path: '/activityguide', component: ActivityGuide },
  44. { name: 'ActivityShow', path: '/activityshow', component: ActivityShow },
  45. { name: 'ActivityRank', path: '/activityrank', component: ActivityRank },
  46. { name: 'ActivityCertificate', path: '/activitycertificate', component: ActivityCertificate },
  47. { name: 'ActivityDetails', path: '/activitydetails', component: ActivityDetails },
  48. { name: 'Login', path: '/login', component: Login },
  49. { name: 'HomePage', path: '/HomePage',component: HomePage,},
  50. { name: 'Teacher', path: '/Teacher', component: Teacher },
  51. { name: 'text', path: '/text', component: text },
  52. {
  53. name: 'TeacherZone', path: '/TeacherZone', component: TeacherZone, redirect: "/TeacherZone/ZonesHome",
  54. children: [
  55. { name: 'ZonesHome', path: 'ZonesHome', component: ZonesHome },
  56. { name: 'TeacherWork', path: 'TeacherWork', component: TeacherWork },
  57. { name: 'TeachDetails', path: 'TeachDetails', component: TeachDetails },
  58. { name: 'TeachSource', path: 'TeachSource', component: TeachSource },
  59. { name: 'TeachResearch', path: 'TeachResearch', component: TeachResearch },
  60. { name: 'TeachTopic', path: 'TeachTopic', component: TeachTopic },
  61. { name: 'TeachActivies', path: 'TeachActivies', component: TeachActivies },
  62. { name: 'TeachClass', path: 'TeachClass', component: TeachClass },
  63. { name: 'TeachTopclass', path: 'TeachTopclass', component: TeachTopclass },
  64. { name: 'TeachVideos', path: 'TeachVideos', component: TeachVideos }
  65. ]
  66. },
  67. ]