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