fix: add route names
This commit is contained in:
@@ -6,9 +6,9 @@ import ProductsList from "./views/ProductsList.vue";
|
|||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{path: '/', name: 'home', component: Home},
|
{path: '/', name: 'home', component: Home},
|
||||||
{path: '/product/:id', component: Product},
|
{path: '/product/:id', name: 'product.show', component: Product},
|
||||||
{path: '/categories', component: CategoriesList},
|
{path: '/categories', name: 'categories', component: CategoriesList},
|
||||||
{path: '/category/:id', component: ProductsList},
|
{path: '/category/:id', name: 'category.show', component: ProductsList},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const router = createRouter({
|
export const router = createRouter({
|
||||||
|
|||||||
Reference in New Issue
Block a user