changed validate products page

This commit is contained in:
Mamalizz
2025-05-24 20:56:22 +03:30
parent 1bca0c772c
commit ce31f2350c
+1 -1
View File
@@ -15,7 +15,7 @@ useSeoMeta({
definePageMeta({
validate: (route) => {
if (Array.isArray(route.params.slug)) {
return route.params.slug.length === 2 && route.params.slug[0] === "category";
return route.params.slug.length === 2 && route.params.slug[0].startsWith("category");
}
return true;