Commit Graph

2 Commits (9d288bde92f08600ae46bd535543b30978dcfd97)

Author SHA1 Message Date
qinzhenpen f9f85a512c perf(review): reuse preview iframe and isolate per-student state
- TaskReviewPanel: keep one preview iframe and hot-switch students via
  postMessage instead of rebuilding the SPA on every click; cache class
  task config per class; reset preview scroll on switch.
- Show a loading overlay on the preview container and reveal it only
  after the embedded page reports component + requests + DOM settled.
- StudentTaskReadonlyPreview: two-phase component swap so the previous
  student instance is fully unmounted before the next mounts; sync the
  iframe URL previewKey so context lookups keep working; isolate
  localStorage to stop student pages leaking drafts between previews.
- Block student-answer reads/writes in preview mode even when the
  preview context key cannot be resolved.
1 month ago
陈沅 b087a72a1e feat: complete teacher task review workflow 3 months ago