New product page with defined route and link from productCard.

This commit is contained in:
2020-07-21 12:59:46 +02:00
parent fdae74bdfa
commit 942a9140f0
3 changed files with 152 additions and 1 deletions

View File

@@ -19,6 +19,11 @@ let routes = [
path: '/about',
component: (resolve) => require(['./components/About.vue'], resolve)
},
{
name: 'Shop product view',
path: '/shop/:slug',
component: (resolve) => require(['./components/Product.vue'], resolve)
},
{
name: 'Shop',
path: '/shop',