fix(maps): _auto_snapshot 补 entity_id 继承地图企业 — 修复 entity2 地图发布后版本行落 entity1 致版本列表为空 (project-20260908-map-versions-page)

This commit is contained in:
Hermes CI Fix
2026-09-08 20:24:44 +08:00
parent 534f6328ed
commit 265714341c
2 changed files with 172 additions and 0 deletions
+1
View File
@@ -285,6 +285,7 @@ def _auto_snapshot(m: StrategicMap, db: Session):
snapshot = StrategicMapVersion(
map_id=m.id,
entity_id=m.entity_id if m.entity_id is not None else 1, # 继承地图企业(2026-09-08 修复: 原缺失致entity2版本行落entity1)
version=new_ver,
dimensions=dims,
canvas_data=canvas,