Commit b3566f3b4059263f7f94b3d29ffdca41d25bf5ec
1 parent
e641494f
fix: DEFECT-1248 修复设备点击上下线记录如果有别名则使用别名进行筛选
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | ... | @@ -385,10 +385,10 @@ |
| 385 | 385 | openGatewayDetailDrawer(true, data); |
| 386 | 386 | }; |
| 387 | 387 | |
| 388 | - const handleUpAndDownRecord = (record: Record<'name', string>) => { | |
| 388 | + const handleUpAndDownRecord = (record: Record<'name' | 'alias', string>) => { | |
| 389 | 389 | ROUTER.push({ |
| 390 | 390 | path: '/operation/onlinerecord', |
| 391 | - query: { deviceName: record.name }, | |
| 391 | + query: { deviceName: record.alias || record.name }, | |
| 392 | 392 | }); |
| 393 | 393 | }; |
| 394 | 394 | ... | ... |