From 3fa7cdec6ce44f07a0dc7e1910511ead606990f3 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期四, 11 九月 2025 08:19:53 +0800 Subject: [PATCH] 1 --- zy-acs-flow/src/page/agv/GridList.jsx | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) 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