feat: add product view page
This commit is contained in:
13
spa/src/router.js
Normal file
13
spa/src/router.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import {createRouter, createWebHistory} from 'vue-router';
|
||||
import Home from './views/Home.vue';
|
||||
import Product from './views/Product.vue';
|
||||
|
||||
const routes = [
|
||||
{path: '/', component: Home},
|
||||
{path: '/product/:id', component: Product},
|
||||
];
|
||||
|
||||
export const router = createRouter({
|
||||
history: createWebHistory('/image/catalog/tgshopspa/'),
|
||||
routes,
|
||||
});
|
||||
Reference in New Issue
Block a user