#
luxiaotao1123
2024-09-20 3519a77593ecb276b0d0cfa7f5b887f8618ecdbd
#
2个文件已修改
8 ■■■■ 已修改文件
zy-acs-flow/src/page/agv/AgvCard.jsx 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/page/agv/GridList.jsx 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/page/agv/AgvCard.jsx
@@ -20,6 +20,9 @@
    const record = useRecordContext(props);
    if (!record) return null;
    console.log(record);
    return (
        <Link
            to={createPath({
zy-acs-flow/src/page/agv/GridList.jsx
@@ -1,6 +1,6 @@
import * as React from 'react';
import { Box, Paper, Typography } from '@mui/material';
import { RecordContextProvider, useListContext } from 'react-admin';
import { RecordContextProvider, useListContext, useTranslate } from 'react-admin';
import { AgvCard } from './AgvCard';
@@ -25,6 +25,7 @@
const LoadedGridList = () => {
    const { data, error, isPending } = useListContext();
    const translate = useTranslate();
    if (isPending || error) return null;
@@ -42,7 +43,7 @@
            ))}
            {data.length === 0 && (
                <Typography p={2}>No companies found</Typography>
                <Typography p={2}>No data found</Typography>
            )}
        </Box>
    );