index.js 599 B

123456789101112131415161718192021222324252627
  1. import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
  2. import HomeView from '../views/HomeView.vue'
  3. import BrandSearch from '../views/BrandSearch.vue'
  4. import ArTourView from '../views/ArTourView.vue'
  5. const router = createRouter({
  6. history: createWebHashHistory(),
  7. routes: [
  8. {
  9. path: '/',
  10. name: 'home',
  11. component: HomeView,
  12. },
  13. {
  14. path: '/brand-search',
  15. name: 'BrandSearch',
  16. component: BrandSearch,
  17. },
  18. {
  19. path: '/ar-tour',
  20. name: 'ar-tour',
  21. component: ArTourView
  22. },
  23. ]
  24. })
  25. export default router