Commit 2d569549 authored by junmeng huang's avatar junmeng huang
Browse files

feat: 1. 添加基础数据保护

    - 在 onLoad 时立即设置默认数据
    - 确保即使API调用失败,页面也有基础内容显示
  2. 改善错误处理 
    - API失败时设置 todayCount: 0, totalCount: 0
    - 避免页面因为数据缺失而不显示内容
  3. 添加调试日志 
    - 添加了详细的 console.log 来追踪页面加载过程
    - 可以通过控制台查看页面是否正常初始化
  4. 保持 urlCheck: false 
    - 确保小程序能访问任意域名,避免网络请求被阻止
parent 2fbb57d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment