dockerfile
This commit is contained in:
parent
10842b9a36
commit
f29e667561
|
@ -9,7 +9,7 @@ const pagination = ref({ total: 10, pageCount: 10 })
|
||||||
const user_id = ref()
|
const user_id = ref()
|
||||||
|
|
||||||
const loadData = async () => {
|
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
|
const res = items_data.results
|
||||||
res.map(item => {
|
res.map(item => {
|
||||||
const uniq = [...new Set(item.tmc.map(el => el.tmc.id))]
|
const uniq = [...new Set(item.tmc.map(el => el.tmc.id))]
|
||||||
|
@ -39,7 +39,9 @@ const columns = [
|
||||||
]
|
]
|
||||||
|
|
||||||
const testCallback = (user: any) => {
|
const testCallback = (user: any) => {
|
||||||
|
console.log(user)
|
||||||
user_id.value = user.id
|
user_id.value = user.id
|
||||||
|
loadData()
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
|
|
Loading…
Reference in New Issue