feat: expand mini app on mounted

This commit is contained in:
Nikita Kiselev
2025-07-11 17:20:09 +03:00
parent 3c819e6c6c
commit 1e454b8f23
2 changed files with 5 additions and 2 deletions

View File

@@ -35,10 +35,14 @@
<script setup>
import ProductList from "./components/ProductList.vue";
import {ref} from "vue";
import {onMounted, ref} from "vue";
const goodsRef = ref();
function scrollToProducts() {
goodsRef.value?.scrollIntoView({ behavior: 'smooth' });
}
onMounted(() => {
window.Telegram?.WebApp?.expand();
})
</script>

View File

@@ -6,4 +6,3 @@ createApp(App).mount('#app')
const tg = window.Telegram.WebApp;
tg.ready();
tg.expand(); // на весь экран