Changeset f9ef3e8 for ReserveNGo-frontend/src/router/index.js
- Timestamp:
- 01/23/25 18:48:23 (3 months ago)
- Branches:
- master
- Children:
- a0e93df
- Parents:
- 4446c6f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ReserveNGo-frontend/src/router/index.js
r4446c6f rf9ef3e8 1 1 import { createRouter, createWebHistory } from 'vue-router' 2 2 3 import My_reservations from '@/components/Project/My_reservations.vue' 3 4 4 import home_ from '@/components/Project/home_.vue' 5 5 import login_ from '@/components/Project/login_.vue' 6 6 import register_ from '@/components/Project/register_.vue' 7 import favourite_locals from '@/components/Project/favourite_locals.vue' 8 import my_reservations from '@/components/Project/My_reservations.vue' 7 9 8 10 const router = createRouter({ … … 10 12 routes: [ 11 13 { 12 path: '/ topics',13 name: ' my_reservations',14 component: My_reservations,14 path: '/favourite_locals', 15 name: 'favourite_locals', 16 component: favourite_locals, 15 17 // route level code-splitting 16 18 // this generates a separate chunk (About.[hash].js) for this route 17 19 // which is lazy-loaded when the route is visited. 18 20 21 }, 22 { 23 path: '/my_reservations', 24 name: 'my reservations', 25 component: my_reservations, 19 26 }, 20 27 {
Note:
See TracChangeset
for help on using the changeset viewer.