fix: 预算页初始加载也默认选中当前版本 — 根治重复
根因: loadPublishedMaps自动选第一个地图但未走onMapSelect → filterVersion保持空 → 显示全版本堆叠(28条) 修复: 自动选地图后同步loadVersions+selectDefaultVersion = 初始进入页面即默认当前版本(7条), 与手动切换一致 部署完成
This commit is contained in:
@@ -492,6 +492,9 @@ async function loadPublishedMaps() {
|
|||||||
if (published.length > 0) {
|
if (published.length > 0) {
|
||||||
selectedMapId.value = published[0].id
|
selectedMapId.value = published[0].id
|
||||||
selectedMap.value = published[0]
|
selectedMap.value = published[0]
|
||||||
|
// 同步加载版本并默认选中当前版本(与onMapSelect一致, 2026-08-27根治)
|
||||||
|
await loadVersions()
|
||||||
|
selectDefaultVersion()
|
||||||
}
|
}
|
||||||
} catch { publishedMaps.value = []; noMap.value = true }
|
} catch { publishedMaps.value = []; noMap.value = true }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user