From 3519a77593ecb276b0d0cfa7f5b887f8618ecdbd Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 20 九月 2024 10:13:00 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/page/agv/GridList.jsx | 5 +++--
zy-acs-flow/src/page/agv/AgvCard.jsx | 3 +++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/zy-acs-flow/src/page/agv/AgvCard.jsx b/zy-acs-flow/src/page/agv/AgvCard.jsx
index b18bb74..a226dfc 100644
--- a/zy-acs-flow/src/page/agv/AgvCard.jsx
+++ b/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({
diff --git a/zy-acs-flow/src/page/agv/GridList.jsx b/zy-acs-flow/src/page/agv/GridList.jsx
index 2351198..3e91a71 100644
--- a/zy-acs-flow/src/page/agv/GridList.jsx
+++ b/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>
);
--
Gitblit v1.9.1