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

@@ -6,21 +6,13 @@
</template>
<script setup>
import {onMounted, ref} from "vue";
import {ref} from "vue";
const goodsRef = ref();
function scrollToProducts() {
goodsRef.value?.scrollIntoView({ behavior: 'smooth' });
}
import { useBackButton } from 'vue-tg';
import ProductsList from "./ProductsList.vue";
import CategoriesInline from "../components/CategoriesInline.vue";
const backButton = useBackButton();
onMounted(() => {
if (backButton.isVisible.value) {
backButton.hide();
}
});
</script>