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.

21 lines
436 B

4 months ago
  1. import { createRouter, createWebHistory } from 'vue-router'
  2. import HomeView from '../views/HomeView.vue'
  3. import BackView from '../views/BackView.vue'
  4. const router = createRouter({
  5. history: createWebHistory(import.meta.env.BASE_URL),
  6. routes: [
  7. {
  8. path: '/',
  9. name: 'home',
  10. component: HomeView,
  11. },
  12. {
  13. path: '/back',
  14. name: 'back',
  15. component: BackView,
  16. }
  17. ],
  18. })
  19. export default router