diff --git a/web/src/QAWeeklyMail.tsx b/web/src/QAWeeklyMail.tsx
index cc7357d..2078505 100644
--- a/web/src/QAWeeklyMail.tsx
+++ b/web/src/QAWeeklyMail.tsx
@@ -63,6 +63,13 @@ export function QAWeeklyMail({ week, busy }: { week: string; busy: boolean }) {
setConfirmation(next)
setNotice(confirm ? '已确认本周周报;到设定时间会自动发送,正文改动后需重新确认' : '已取消确认,不会自动发送')
setSends(await fetchWeeklyMailSends(week))
+ // The chart can only be rendered by the browser, so it is generated and attached
+ // the moment the operator confirms — no separate step for the common path.
+ if (confirm && next?.current) {
+ setNotice('已确认本周周报;正在生成并附上统计看板图片…')
+ setAttaching(true)
+ setCapture(true)
+ }
} catch (reason) {
setError(reason instanceof Error ? reason.message : '确认失败')
} finally {
@@ -135,9 +142,11 @@ export function QAWeeklyMail({ week, busy }: { week: string; busy: boolean }) {
-
+ {confirmation?.has_image && !stale ? (
+
+ ) : null}