feat(orders): tg notifications, ya metrika, meta tags

This commit is contained in:
Nikita Kiselev
2025-08-03 09:39:51 +03:00
parent 454bd39f1f
commit 86d0fa9594
32 changed files with 1205 additions and 76 deletions

View File

@@ -22,22 +22,21 @@ disableVerticalSwipes();
const router = useRouter();
const route = useRoute();
const backButton = useBackButton();
watch(
() => route,
() => route.name,
() => {
if (route.name === 'home') {
backButton.hide?.();
window.Telegram.WebApp.BackButton.hide();
window.Telegram.WebApp.BackButton.offClick();
} else {
backButton.show?.();
backButton.onClick?.(() => {
window.Telegram.WebApp.BackButton.show();
window.Telegram.WebApp.BackButton.onClick(() => {
window.Telegram.WebApp.HapticFeedback.impactOccurred('light');
router.back();
});
}
},
{immediate: true, deep: true}
{immediate: true}
);
</script>