hookehuyr

fix: 将固定家庭总数改为随机四位数

<!--
* @Date: 2025-01-09 00:00:00
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-10-25 20:00:46
* @LastEditTime: 2025-10-25 20:13:01
* @FilePath: /lls_program/src/components/RankingCard.vue
* @Description: 排行榜卡片组件
-->
......@@ -334,7 +334,8 @@ const loadLeaderboardData = async (isInitialLoad = false) => {
// 设置当前日期
currentDate.value = response.data.yesterday
// TODO: 设置总家庭数
currentTotalFamilySum.value = 2318;
// 生成随机的4位数
currentTotalFamilySum.value = Math.floor(1000 + Math.random() * 9000);
}
} catch (error) {
console.error('获取排行榜数据失败:', error)
......
......@@ -371,7 +371,8 @@ const loadLeaderboardData = async (isInitialLoad = false) => {
}
currentDate.value = response.data.yesterday
// TODO: 设置总家庭数
currentTotalFamilySum.value = 2318;
// 生成随机的4位数
currentTotalFamilySum.value = Math.floor(1000 + Math.random() * 9000);
}
} catch (error) {
console.error('获取排行榜数据失败:', error)
......