some tg tests
This commit is contained in:
@@ -16,8 +16,6 @@ const searchText = ref("");
|
||||
const route = useRoute()
|
||||
|
||||
|
||||
|
||||
|
||||
const fetchCategories = async () => {
|
||||
loading.value = true
|
||||
try {
|
||||
@@ -30,6 +28,15 @@ const fetchCategories = async () => {
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
const tgname = computed(() => {
|
||||
if (window.Telegram.WebApp) {
|
||||
const tg = window.Telegram.WebApp;
|
||||
tg.expand(); // Разворачиваем веб-приложение на весь экран
|
||||
|
||||
// Получаем информацию о пользователе и выводим её
|
||||
return tg.initDataUnsafe.user
|
||||
}
|
||||
})
|
||||
|
||||
const transactions = ref<Transaction[]>([])
|
||||
|
||||
@@ -54,7 +61,7 @@ onMounted(async () => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="px-4 bg-gray-100 h-full ">
|
||||
<div class="px-4 bg-gray-100 h-full ">
|
||||
<!-- Заголовок -->
|
||||
<h2 class="text-4xl mb-6 font-bold">Transaction list</h2>
|
||||
<div class="flex flex-col gap-2">
|
||||
|
||||
Reference in New Issue
Block a user