lc fa8d8e7b4b fix: seed existing local data to cloud on first launch
Previously cloud sync only triggered on writes. If the user already
had training records before cloud was enabled, they'd never be pushed
— leaving the database empty until the next training session.

Now onLaunch handles both cases:
  - Local empty → restore from cloud (recovery after deletion)
  - Local has data → check cloud; if cloud empty, push existing data up

Also extract _restoreFromCloud to reduce nesting.
2026-06-04 17:29:13 +08:00
2026-06-04 16:25:43 +08:00
S
Description
微信小程序-平板支撑
823 KiB
Languages
JavaScript 100%