perf(player): 优化 Tab 切换性能并改进投注历史展示
- 主 Tab 启用 keep-alive,恢复各页滚动位置,避免切页重复加载与重复请求 - 首页数据缓存、余额/头像共用 profile 缓存,冠军盘与串关面板按需加载 - 球赛与串关列表新增「仅显示待开赛」筛选 - 重构历史注单卡片,展示注单类型、赔率与日期 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -50,7 +50,8 @@ function collectAnnouncementLines(data: HomePayload | null): string[] {
|
||||
export function usePlayerHome() {
|
||||
const { t } = useI18n();
|
||||
|
||||
async function load() {
|
||||
async function load(force = false) {
|
||||
if (!force && homeRaw.value) return;
|
||||
loading.value = true;
|
||||
try {
|
||||
const { data } = await api.get('/player/home');
|
||||
|
||||
Reference in New Issue
Block a user