This commit is contained in:
Vladimir Voronin
2024-10-25 13:48:00 +03:00
parent 7cf5cb1abf
commit 3028f2b244

View File

@@ -59,7 +59,7 @@ const tg_id = computed(() => {
const login = async () => { const login = async () => {
try { try {
let response: string let response: string
if (tg_id){ if (tg_id.id){
response = await apiClient.post('/auth/token/tg', qs.stringify({ tg_id: tg_id.value })); response = await apiClient.post('/auth/token/tg', qs.stringify({ tg_id: tg_id.value }));
} else { } else {
response = await apiClient.post('/auth/token', qs.stringify({ username: username.value, password: password.value })); response = await apiClient.post('/auth/token', qs.stringify({ username: username.value, password: password.value }));