This commit is contained in:
mmc
2026-05-25 11:08:45 +08:00
parent 2d6d985544
commit 6aa86d0a32
3 changed files with 12 additions and 1 deletions

View File

@@ -47,7 +47,7 @@ const DroneVideoPlayer: React.FC<DroneVideoPlayerProps> = ({
switchingLock.current = true;
setLoading(true);
try {
const cameraIndex = device.gateway_camera_list[0]?.camera_index || ""; // 目前先默认用第一个摄像头
const cameraIndex = device?.gateway_camera_list[0]?.camera_index || ""; // 目前先默认用第一个摄像头
if (!cameraIndex) {
setStreamData(null);
utils.message.warning(`未找到${cameraPosition === 'indoor' ? '室内' : '室外'}摄像头配置`);

View File

@@ -387,6 +387,9 @@ export default function WayLinePage({ planedevices }) {
pagination={false}
scroll={{ y: 'auto', maxHeight: 260 }}
style={{ height: '100%' }}
rowClassName={(record) =>
selectedTask?.uuid === record.uuid ? 'table-row-highlight' : ''
}
onRow={(record) => ({
onClick: () => handleRowClick(record),
style: { cursor: 'pointer' }