所有传orgId的地方修改

This commit is contained in:
mmc
2026-08-04 16:33:52 +08:00
parent 0116509dab
commit c9ed73bc6b
11 changed files with 36 additions and 32 deletions

View File

@@ -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),
]);