feat(product): change router history driver, change add to cart behaviour

This commit is contained in:
2025-08-03 19:07:54 +03:00
parent 63adf96908
commit ebc352dcdf
3 changed files with 19 additions and 9 deletions

View File

@@ -24,13 +24,13 @@ const router = useRouter();
const route = useRoute();
const isCartBtnShow = computed(() => {
return route.name !== 'cart.show' && route.name !== 'checkout';
return route.name !== 'cart' && route.name !== 'checkout';
});
function openCart() {
window.Telegram.WebApp.HapticFeedback.selectionChanged();
router.push({name: 'cart.show'});
router.push({name: 'cart'});
}
onMounted(async () => {