index.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. import Vue from 'vue'
  2. import VueRouter from 'vue-router'
  3. import index from '@/views/index.vue'
  4. import TermsUse from '@/views/TermsUse.vue'
  5. import Privacy from '@/views/Privacy.vue'
  6. import FAQ from '@/views/Faq.vue'
  7. import ContactUs from '@/views/ContactUs.vue'
  8. import Copyright from '@/views/Copyright.vue'
  9. import AboutUs from '@/views/AboutUs.vue'
  10. import Payments from '@/views/Payments.vue'
  11. import ToonMobile from '@/views/ToonMobile.vue'
  12. Vue.use(VueRouter)
  13. const routes = [
  14. {path:'/',
  15. redirect:'/index'
  16. },
  17. {
  18. path: '/index',
  19. name: 'index',
  20. component: index
  21. },
  22. {
  23. path: '/termsUse',
  24. name: 'termsUse',
  25. component: TermsUse
  26. },
  27. {
  28. path:'/privacy',
  29. name:'privacy',
  30. component:Privacy
  31. },
  32. {
  33. path:'/FAQ',
  34. name:'FAQ',
  35. component:FAQ
  36. },
  37. {
  38. path:'/ContactUs',
  39. name:'ContactUs',
  40. component:ContactUs
  41. },
  42. {
  43. path:'/Copyright',
  44. name:'Copyright',
  45. component:Copyright
  46. },
  47. {
  48. path:'/AboutUs',
  49. name:'AboutUs',
  50. component:AboutUs
  51. },
  52. {
  53. path:'/Payments',
  54. name:'Payments',
  55. component:Payments
  56. },
  57. {
  58. path:'/ToOnMobile',
  59. name:'ToOnMobile',
  60. component:ToonMobile
  61. },
  62. ]
  63. const router = new VueRouter({
  64. routes
  65. })
  66. export default router