From 60e81309c34325d2ae710ec83ced08fca50e1a49 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期五, 18 十月 2024 16:01:12 +0800 Subject: [PATCH] # --- zy-acs-flow/src/map/insight/agv/AgvMain.jsx | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/zy-acs-flow/src/map/insight/agv/AgvMain.jsx b/zy-acs-flow/src/map/insight/agv/AgvMain.jsx index 5e22aff..566e2ce 100644 --- a/zy-acs-flow/src/map/insight/agv/AgvMain.jsx +++ b/zy-acs-flow/src/map/insight/agv/AgvMain.jsx @@ -1,6 +1,6 @@ import React, { useRef, useEffect, useState } from 'react'; import * as THREE from 'three'; -import { useTranslate, useDataProvider } from 'react-admin'; +import { useTranslate, useDataProvider, useRedirect } from 'react-admin'; import { Box, CircularProgress, @@ -82,6 +82,7 @@ const theme = useTheme(); const translate = useTranslate(); const dataProvider = useDataProvider(); + const redirect = useRedirect(); const notify = useNotification(); const containerRef = useRef(); const [loading, setLoading] = useState(true); @@ -190,14 +191,16 @@ <Grid container spacing={2} style={{ marginTop: '0px' }}> <Grid item xs={12}> <Stack spacing={2} mt={2}> - <ConfirmButton - label="page.map.action.reset" + <Button color="primary" variant="contained" - onConfirm={() => { - handleReset(); + onClick={() => { + redirect(`/agv/${info?.agvId}/show`); }} - /> + > + {translate('page.map.settings.map.more.title')} + </Button> + <ConfirmButton label="page.map.action.restoreALl" color="primary" -- Gitblit v1.9.1