航线任务
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { Layout, Typography, Menu } from 'antd';
|
||||
import { AppstoreOutlined, SettingOutlined } from '@ant-design/icons';
|
||||
import { AimOutlined, AppstoreOutlined, SettingOutlined } from '@ant-design/icons';
|
||||
import DeviceOverviewPage from '../components/devices/DeviceOverviewPage';
|
||||
import { getDeviceListApi, getPlaneDeviceList } from '../api/device';
|
||||
import { useSelector } from 'react-redux';
|
||||
import { RootState } from '../store';
|
||||
import WayLinePage from '../components/devices/WayLinePage';
|
||||
|
||||
const { Header, Content } = Layout;
|
||||
const { Text } = Typography;
|
||||
@@ -25,6 +26,7 @@ export default function DeviceIndexPage() {
|
||||
const tabs = [
|
||||
{ key: 'overview', label: '装备总览', icon: <AppstoreOutlined /> },
|
||||
{ key: 'status', label: '设置状态', icon: <SettingOutlined /> },
|
||||
{ key: 'wayLineTask', label: '航线任务', icon: <AimOutlined /> },
|
||||
];
|
||||
|
||||
// 👇 核心修复:同时请求 + 同时合并
|
||||
@@ -67,6 +69,7 @@ export default function DeviceIndexPage() {
|
||||
/>;
|
||||
}
|
||||
if (activeTab === 'status') return <DeviceStatusSettingPage />;
|
||||
if (activeTab === 'wayLineTask') return <WayLinePage />;
|
||||
return null;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user