fix: correct back button work

This commit is contained in:
Nikita Kiselev
2025-07-14 23:15:36 +03:00
parent 1715c01b1d
commit 08af204d74
6 changed files with 72 additions and 51 deletions

View File

@@ -5,7 +5,7 @@ import CategoriesList from "./views/CategoriesList.vue";
import ProductsList from "./views/ProductsList.vue";
const routes = [
{path: '/', component: Home},
{path: '/', name: 'home', component: Home},
{path: '/product/:id', component: Product},
{path: '/categories', component: CategoriesList},
{path: '/category/:id', component: ProductsList},