some tg tests
This commit is contained in:
@@ -16,8 +16,6 @@ const searchText = ref("");
|
|||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const fetchCategories = async () => {
|
const fetchCategories = async () => {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
try {
|
try {
|
||||||
@@ -30,6 +28,15 @@ const fetchCategories = async () => {
|
|||||||
loading.value = false
|
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[]>([])
|
const transactions = ref<Transaction[]>([])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user