|
|
@@ -502,6 +502,8 @@
|
|
|
:data-fixed-side="facilityFixedLeft ? 'left' : 'right'"
|
|
|
:data-anchor-code="selectedDetailCode"
|
|
|
:data-selection-paused="selectionVisibleInMode ? 'no' : 'yes'"
|
|
|
+ :data-detail-open="String(detailOpen)"
|
|
|
+ :data-intro-visible="String(introVisible)"
|
|
|
:aria-label="facilityDetailOpen ? '设施详情' : '点位与设备详情'"
|
|
|
:data-facility-anchor-id="facilityDetailOpen ? entityDetailStore.identity.id : null">
|
|
|
<FacilityDetailCard
|
|
|
@@ -1848,7 +1850,11 @@ function syncLayersForEntered(nextEntered) {
|
|
|
const stopDeviceWatches = []
|
|
|
|
|
|
/** 票 10:两级详情是否打开(浮层只在有选择时渲染;关掉后地图与面板保持原样)。 */
|
|
|
-const detailOpen = computed(() => facilityDetailOpen.value || selection.value.level !== DETAIL_LEVEL.NONE)
|
|
|
+const detailOpen = computed(() => {
|
|
|
+ if (facilityDetailOpen.value) return true
|
|
|
+ const current = selection.value
|
|
|
+ return Boolean(current && current.level && current.level !== DETAIL_LEVEL.NONE)
|
|
|
+})
|
|
|
function closeActiveDetail() {
|
|
|
if (facilityDetailOpen.value) entityDetailStore.close()
|
|
|
else detailStore.closeDetail()
|
|
|
@@ -2349,6 +2355,10 @@ function flyHome({ fromIntro = false } = {}) {
|
|
|
defer(fly, 250)
|
|
|
} else {
|
|
|
homeFlightPending.value = false
|
|
|
+ // 进入动作不该被地图就绪卡死:点过「进入」就结束引导态。
|
|
|
+ // 否则 Drawer / 详情浮层这些 v-if="!introVisible" 的节点永远不渲染 ——
|
|
|
+ // 表现就是「点什么都打不开详情」,而地图本身稍后仍会就绪(维护者 2026-12-02)。
|
|
|
+ if (fromIntro) introVisible.value = false
|
|
|
areaNotice.value = '地图暂未就绪,请稍后重试'
|
|
|
}
|
|
|
}
|