国外MOSE官网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.2 KiB

2 weeks ago
1 week ago
2 weeks ago
  1. import { createRouter, createWebHistory } from 'vue-router'
  2. const routes = [
  3. {
  4. path: '/',
  5. name: 'Home',
  6. component: () => import('@/views/Home.vue')
  7. },
  8. {
  9. path: '/ecosystem',
  10. name: 'Ecosystem',
  11. component: () => import('@/views/Ecosystem.vue')
  12. },
  13. {
  14. path: '/about',
  15. name: 'About',
  16. component: () => import('@/views/About.vue')
  17. },
  18. {
  19. path: '/community',
  20. name: 'Community',
  21. component: () => import('@/views/Community.vue')
  22. },
  23. {
  24. path: '/faq',
  25. name: 'FAQ',
  26. component: () => import('@/views/FAQ.vue')
  27. },
  28. {
  29. path: '/contact',
  30. name: 'Contact',
  31. component: () => import('@/views/Contact.vue')
  32. },
  33. {
  34. path: '/technology',
  35. name: 'Technology',
  36. component: () => import('@/views/Technology.vue')
  37. },
  38. // {
  39. // path: '/animations',
  40. // name: 'Animations',
  41. // component: () => import('@/components/AnimationDemo.vue')
  42. // },
  43. {
  44. path: '/:pathMatch(.*)*',
  45. name: 'NotFound',
  46. component: () => import('@/views/NotFound.vue')
  47. }
  48. ]
  49. const router = createRouter({
  50. history: createWebHistory(),
  51. routes,
  52. scrollBehavior() {
  53. return { top: 0 }
  54. }
  55. })
  56. export default router