feat: show ten points details in center
This commit is contained in:
@@ -102,7 +102,7 @@ const fetchData = async () => {
|
|||||||
try {
|
try {
|
||||||
const [stats, logs] = await Promise.all([
|
const [stats, logs] = await Promise.all([
|
||||||
request.get<any>({ url: '/community/userStats' }, { isTransformResponse: false }),
|
request.get<any>({ url: '/community/userStats' }, { isTransformResponse: false }),
|
||||||
accountLog({ action: '', type: 'up', page_no: 1, page_size: 3 })
|
accountLog({ action: '', type: 'up', page_no: 1, page_size: 10 })
|
||||||
])
|
])
|
||||||
if (stats?.code === 1) userPoints.value = Number(stats.data?.user_points || 0)
|
if (stats?.code === 1) userPoints.value = Number(stats.data?.user_points || 0)
|
||||||
recentLogs.value = Array.isArray(logs?.lists) ? logs.lists : []
|
recentLogs.value = Array.isArray(logs?.lists) ? logs.lists : []
|
||||||
|
|||||||
Reference in New Issue
Block a user