Skip to content

Commit

Permalink
add route web-shop
Browse files Browse the repository at this point in the history
  • Loading branch information
gudzsv committed Apr 18, 2024
1 parent 80dee11 commit 91a7d42
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import './assets/main.css'

import { autoAnimatePlugin } from '@formkit/auto-animate/vue'
import { createApp } from 'vue'
import { createRouter, createMemoryHistory,createWebHistory} from 'vue-router'
import { createMemoryHistory, createRouter, createWebHistory } from 'vue-router'
import App from './App.vue'

const app = createApp(App)
Expand All @@ -15,10 +15,16 @@ const router = createRouter({
name: 'home',
component: () => import('./pages/Home.vue')
},
{
path:'/web-shop',
name: 'home',
component: () => import('./pages/Home.vue')
},
{
path: '/favorites',
name: 'favorites',
component: () => import('./pages/Favorites.vue')
component: () => import('./pages/Favorites.vue'
)
}
]
})
Expand Down

0 comments on commit 91a7d42

Please sign in to comment.