diff --git a/front/pages/table/index.vue b/front/pages/table/index.vue index cb3533f..b9ba3a1 100644 --- a/front/pages/table/index.vue +++ b/front/pages/table/index.vue @@ -9,7 +9,7 @@ const pagination = ref({ total: 10, pageCount: 10 }) const user_id = ref() const loadData = async () => { - const items_data = await apiCall>(`tgbot/?page=${page.value}&user_id=${user_id.value}`) + const items_data = await apiCall>(`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() }