Files
smart-project/h5-app
jesxion cb6010715d fix: correct hazard upload flow
- Fix upload-token API: backend returns { uploadUrl, objectKey } directly
  (camelCase, no ApiResponse wrapper); update UploadTokenResult interface
  and remove incorrect res.data access
- Fix confirm API: backend returns { fileId, objectKey } directly (no url,
  no ApiResponse wrapper); update ConfirmResult interface accordingly
- uploadPhoto now returns { url: blobUrl, extra: { objectKey } } so the
  ImageUploader can show a local preview while HazardReportPage submits
  the confirmed objectKey (via extra) rather than the ephemeral blob URL
- Fix geolocation: getCurrentPosition returns void, not a watch ID;
  remove the incorrect cast and clearWatch cleanup call; drop unused gpsWatchId ref

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-24 18:30:39 +08:00
..
2026-04-24 18:30:39 +08:00
2026-04-24 16:42:24 +08:00