изменение логики работы поиска датчиков из дашборд и истории тревог по конкретному этажу
This commit is contained in:
@@ -129,15 +129,15 @@ const Dashboard: React.FC = () => {
|
||||
return
|
||||
}
|
||||
|
||||
const sensorSerialNumber = await navigateToSensor(
|
||||
const result = await navigateToSensor(
|
||||
sensorId,
|
||||
alert.floor || null,
|
||||
viewType
|
||||
)
|
||||
|
||||
if (sensorSerialNumber) {
|
||||
// Переходим на страницу навигации с параметром focusSensorId
|
||||
router.push(`/navigation?focusSensorId=${encodeURIComponent(sensorSerialNumber)}`)
|
||||
if (result) {
|
||||
// Переходим на страницу навигации с параметрами focusSensorId и modelPath
|
||||
router.push(`/navigation?focusSensorId=${encodeURIComponent(result.sensorSerialNumber)}&modelPath=${encodeURIComponent(result.modelPath)}`)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user