This commit is contained in:
Vladimir Voronin
2024-10-25 14:36:08 +03:00
parent 3028f2b244
commit 5fae4c2939

View File

@@ -2,6 +2,7 @@
<div class="flex items-center justify-center h-screen bg-gray-100"> <div class="flex items-center justify-center h-screen bg-gray-100">
<div class="w-full max-w-sm p-6 bg-white rounded-lg shadow-md"> <div class="w-full max-w-sm p-6 bg-white rounded-lg shadow-md">
<h2 class="text-2xl font-bold text-center mb-6">Вход</h2> <h2 class="text-2xl font-bold text-center mb-6">Вход</h2>
{{tg_id}}
<form @submit.prevent="login"> <form @submit.prevent="login">
<div class="mb-4"> <div class="mb-4">
<label class="block text-gray-700 text-sm font-bold mb-2" for="username">Логин</label> <label class="block text-gray-700 text-sm font-bold mb-2" for="username">Логин</label>
@@ -54,6 +55,7 @@ const tg_id = computed(() => {
// Получаем информацию о пользователе и выводим её // Получаем информацию о пользователе и выводим её
return tg.initDataUnsafe.user.id return tg.initDataUnsafe.user.id
} }
else return 567047
}) })
const login = async () => { const login = async () => {