新用户空态: handler 短路 —— pregEmpty 时跳过 stampLetters/syncStaticDates 等按默认孕周的重算, 隐藏演示未读角标 (v26090714)
This commit is contained in:
@@ -4103,6 +4103,11 @@
|
||||
}
|
||||
// 统一回刷依赖这些 state 的展示
|
||||
syncPregnancy();
|
||||
/* 新用户空态:syncPregnancy 已写完引导占位(含信件/称呼/静态位归零)。
|
||||
⚠️ 下面 stampLetters/filterLetters/syncStaticDates 全按 state.week 重算,
|
||||
而 pregEmpty 时 state.week 还是内置默认 27 —— 不拦住的话,
|
||||
刚写好的占位会被改回「孕 27 周 / 9月15日」演示值。 */
|
||||
if (state.pregEmpty) { $('#tabBadge').classList.remove('show'); return; }
|
||||
syncBabyWords();
|
||||
stampLetters();
|
||||
filterLetters(state.letterFilter);
|
||||
|
||||
Reference in New Issue
Block a user