所有传orgId的地方修改
This commit is contained in:
@@ -58,7 +58,7 @@ const logs = [
|
||||
|
||||
export default function DeviceOverviewPage() {
|
||||
const { userInfo } = useSelector((state: RootState) => state.user);
|
||||
const { stationId } = useSelector((state: RootState) => state.station);
|
||||
const { stationId, currentStation } = useSelector((state: RootState) => state.station);
|
||||
|
||||
const [zoomedVideo, setZoomedVideo] = useState(null);
|
||||
const [mowerView, setMowerView] = useState('front');
|
||||
@@ -79,6 +79,7 @@ export default function DeviceOverviewPage() {
|
||||
const [editAliasInput, setEditAliasInput] = useState('');
|
||||
const [editLoading, setEditLoading] = useState(false);
|
||||
const navigate = useNavigate();
|
||||
console.log('stationId', stationId, currentStation);
|
||||
|
||||
|
||||
// 获取数据
|
||||
@@ -88,7 +89,7 @@ export default function DeviceOverviewPage() {
|
||||
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