优化代码消除 控制台的报错信息
This commit is contained in:
@@ -997,9 +997,9 @@ export default function DeviceStatusPage() {
|
||||
{t('devices.stationVideo')}
|
||||
</>
|
||||
}
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={{ borderRadius: 12, marginBottom: 8 }}
|
||||
bodyStyle={{ padding: 12 }}
|
||||
styles={{ body: { padding: 12 } }}
|
||||
>
|
||||
<div style={{ borderRadius: 8, overflow: 'hidden', height: 300 }}>
|
||||
<DroneVideoPlayer
|
||||
@@ -1041,13 +1041,13 @@ export default function DeviceStatusPage() {
|
||||
setClearPlanLine((v) => v + 1);
|
||||
}}
|
||||
>
|
||||
{t('devices.clearPlannedRoute')}
|
||||
{t('devices.clearPlanRoute')}
|
||||
</Button>
|
||||
</Space>
|
||||
}
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={{ borderRadius: 12 }}
|
||||
bodyStyle={{ padding: 12, height: 400 }}
|
||||
styles={{ body: { padding: 12, height: 400 } }}
|
||||
>
|
||||
<CesiumMap
|
||||
ref={mapRef}
|
||||
@@ -1077,9 +1077,9 @@ export default function DeviceStatusPage() {
|
||||
{t('devices.droneVideo')}
|
||||
</>
|
||||
}
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={{ borderRadius: 12, marginBottom: 8 }}
|
||||
bodyStyle={{ padding: 12 }}
|
||||
styles={{ body: { padding: 12 } }}
|
||||
>
|
||||
<div style={{ borderRadius: 8, overflow: 'hidden', height: "100%" }}>
|
||||
<DroneVideoPlayer
|
||||
@@ -1106,9 +1106,9 @@ export default function DeviceStatusPage() {
|
||||
{t('devices.realtimeVideoMonitor')}
|
||||
</>
|
||||
}
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={{ borderRadius: 12, marginBottom: 8 }}
|
||||
bodyStyle={{ padding: 12, height: 'calc(100vh - 220px)', minHeight: 500 }}
|
||||
styles={{ body: { padding: 12, height: 'calc(100vh - 220px)', minHeight: 500 } }}
|
||||
|
||||
extra={
|
||||
<Button
|
||||
@@ -1329,13 +1329,13 @@ export default function DeviceStatusPage() {
|
||||
setClearPlanLine((v) => v + 1);
|
||||
}}
|
||||
>
|
||||
{t('devices.clearPlannedRoute')}
|
||||
{t('devices.clearPlanRoute')}
|
||||
</Button>
|
||||
</Space>
|
||||
}
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={{ borderRadius: 12, marginBottom: 8, flex: 1, minHeight: 280 }}
|
||||
bodyStyle={{ padding: 12, height: 'calc((100vh - 260px) / 2)', minHeight: 280 }}
|
||||
styles={{ body: { padding: 12, height: 'calc((100vh - 260px) / 2)', minHeight: 280 } }}
|
||||
>
|
||||
<CesiumMap
|
||||
ref={mapRef}
|
||||
@@ -1360,10 +1360,12 @@ export default function DeviceStatusPage() {
|
||||
{t('devices.remoteControl')}
|
||||
</>
|
||||
}
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={{ borderRadius: 12, background: '#0f172a', flex: 1, minHeight: 280, }}
|
||||
headStyle={{ color: '#fff' }}
|
||||
bodyStyle={{ display: 'flex', justifyContent: 'center', alignItems: 'center', height: 'calc(100% - 57px)' }}
|
||||
styles={{
|
||||
header: { color: '#fff', },
|
||||
body: { display: 'flex', justifyContent: 'center', alignItems: 'center', height: 'calc(100% - 57px)' },
|
||||
}}
|
||||
>
|
||||
<XboxController
|
||||
onGamepadUpdate={handleGamepadUpdate}
|
||||
|
||||
Reference in New Issue
Block a user