新用户清 state 内置演示默认值(DEFAULT_DUE/孕27), 资料弹窗预产期/孕周全空+锁定 (v26090716)
This commit is contained in:
@@ -4120,9 +4120,14 @@
|
||||
}
|
||||
if (pg && pg.code === 200 && pg.result) {
|
||||
/* 新用户空态(未完善资料):后端不再给默认孕周 → 显示引导占位,
|
||||
不读任何演示数据(详见 syncPregnancy 的 pregEmpty 分支) */
|
||||
不读任何演示数据(详见 syncPregnancy 的 pregEmpty 分支)。
|
||||
⚠️ 同时清掉 state 的内置演示默认值(DEFAULT_DUE=今天+3个月/孕27周),
|
||||
否则「我的资料」弹窗回填时又会把它们带回来。 */
|
||||
if (pg.result.empty || pg.result.week == null) {
|
||||
state.pregEmpty = true;
|
||||
state.due = null;
|
||||
state.week = null;
|
||||
state.day = null;
|
||||
} else {
|
||||
state.pregEmpty = false;
|
||||
state.week = pg.result.week;
|
||||
|
||||
Reference in New Issue
Block a user