From 022b2aa0384cefbed58939998659a1ee15adfdf0 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 17 十月 2024 17:01:33 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/map/insight/agv/AgvMain.jsx | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/zy-acs-flow/src/map/insight/agv/AgvMain.jsx b/zy-acs-flow/src/map/insight/agv/AgvMain.jsx
index 0b120da..1ab1139 100644
--- a/zy-acs-flow/src/map/insight/agv/AgvMain.jsx
+++ b/zy-acs-flow/src/map/insight/agv/AgvMain.jsx
@@ -10,6 +10,7 @@
Button,
Divider,
Stack,
+ useTheme,
} from '@mui/material';
import AgvThree from './AgvThree';
import { getAgvInfo } from '../../http';
@@ -77,6 +78,7 @@
const AgvMain = (props) => {
const { data, curAgvNo, setCurAgvNo } = props;
+ const theme = useTheme();
const translate = useTranslate();
const containerRef = useRef();
const [loading, setLoading] = useState(true);
@@ -107,6 +109,10 @@
}
return endThree;
}, [info]);
+
+ const handleReset = () => {
+ alert(1)
+ }
return (
<Box display="flex" height="100%">
@@ -173,10 +179,10 @@
<Stack spacing={2} mt={2}>
<ConfirmButton
label="page.map.action.reset"
- color="info"
+ color="primary"
variant="contained"
onConfirm={() => {
- alert(1)
+ handleReset();
}}
/>
{info && (
--
Gitblit v1.9.1