|
|
@@ -235,6 +235,10 @@ function selectionVisible({ mode, selection, objects, markers, associatedDevices
|
|
|
const targetRow = targetDevice
|
|
|
? (Array.isArray(associatedDevices) ? associatedDevices : []).find((row) => row && row.code === targetDevice)
|
|
|
: null
|
|
|
+ // 定位是用户的主动动作:只要有定位目标、当前又是设备级选择,面板就必须显示。
|
|
|
+ // 不再比对编码、也不等图层补点 —— 这两者任一处对不上都会让面板静默消失,
|
|
|
+ // 而这正是「点了定位设备什么都没出现」的成因(维护者 2026-12-02)。
|
|
|
+ if (current.deviceCode && (targetCode || targetDevice)) return true
|
|
|
// 当前选择就是定位目标时**直接可见**:用户刚点了「定位设备」,面板必须出来。
|
|
|
// 不再要求目标已经出现在图层里 —— 图层补点是异步的(揭示行、坐标准入),
|
|
|
// 用它当面板开关会把「还没补上」误判成「不该显示」(维护者 2026-12-02)。
|