dockerfile

This commit is contained in:
Kseninia Mikhaylova 2024-08-05 17:11:37 +03:00
parent 10842b9a36
commit f29e667561
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,7 @@ const pagination = ref({ total: 10, pageCount: 10 })
const user_id = ref()
const loadData = async () => {
const items_data = await apiCall<ApiPaged<TgItem>>(`tgbot/?page=${page.value}&user_id=${user_id.value}`)
const items_data = await apiCall<ApiPaged<TgItem>>(`tgbot/?page=${page.value}&user_id=${user_id.value || ''}`)
const res = items_data.results
res.map(item => {
const uniq = [...new Set(item.tmc.map(el => el.tmc.id))]
@ -39,7 +39,9 @@ const columns = [
]
const testCallback = (user: any) => {
console.log(user)
user_id.value = user.id
loadData()
}
</script>
<template>