fix: correct back button work
This commit is contained in:
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user