router.js 789B

1234567891011121314151617181920
  1. import { createRouter, createWebHashHistory } from 'vue-router'
  2. const routes = [
  3. // { path: '/', component: () => import('@/pages/Language.vue') },
  4. { path: '/', component: () => import('@/pages/index.vue') },
  5. { path: '/bk1', component: () => import('@/pages/bk1/index.vue') },
  6. { path: '/pg2-2', component: () => import('@/pages/pg2-2/index.vue') },
  7. { path: '/pg4', component: () => import('@/pages/pg4/video.vue') },
  8. { path: '/pg4/next', component: () => import('@/pages/pg4/index.vue') },
  9. { path: '/pg4/plant', component: () => import('@/pages/pg4/plant.vue') },
  10. { path: '/share', component: () => import('@/pages/share/index.vue') },
  11. ]
  12. const router = createRouter({
  13. history: createWebHashHistory(),
  14. routes, // short for `routes: routes`
  15. })
  16. export default router;