所有传orgId的地方修改
This commit is contained in:
@@ -66,7 +66,7 @@ const { Text } = Typography;
|
||||
|
||||
export default function DeviceStatusPage() {
|
||||
const { userInfo } = useSelector((state: RootState) => state.user);
|
||||
const { stationId } = useSelector((state: RootState) => state.station);
|
||||
const { stationId, currentStation } = useSelector((state: RootState) => state.station);
|
||||
const [persistentDroneData, setPersistentDroneData] = useState(null); // 持久化无人机数据
|
||||
const [persistentHostData, setPersistentHostData] = useState(null); // 持久化机场数据
|
||||
const [devices, setDevices] = useState([]);
|
||||
@@ -134,7 +134,7 @@ export default function DeviceStatusPage() {
|
||||
try {
|
||||
// 1. 同时发请求
|
||||
const [deviceRes, planeRes] = await Promise.all([
|
||||
getSiteDevice({ siteId: stationId, pageSize: 9999, pageNum: 1, orgId: userInfo.orgId }),
|
||||
getSiteDevice({ siteId: stationId, pageSize: 9999, pageNum: 1, orgId: currentStation?.orgId }),
|
||||
getSiteUAVList(stationId),
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user