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