From f60f7c6687df13cb179cd2a95206a10cca9b77d3 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 17 十月 2024 14:19:19 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/map/insight/agv/index.jsx |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/zy-acs-flow/src/map/insight/agv/index.jsx b/zy-acs-flow/src/map/insight/agv/index.jsx
index 8edcca9..916f6ff 100644
--- a/zy-acs-flow/src/map/insight/agv/index.jsx
+++ b/zy-acs-flow/src/map/insight/agv/index.jsx
@@ -5,7 +5,7 @@
 import JsonShow from '../../JsonShow';
 
 const AgvInsight = (props) => {
-    const { sprite } = props;
+    const { sprite, setTitle } = props;
     const theme = useTheme();
     const themeMode = theme.palette.mode;
     const translate = useTranslate();
@@ -17,6 +17,16 @@
         setActiveTab(newValue);
     };
 
+    useEffect(() => {
+        if (curAgvNo) {
+            setTitle(translate('page.map.devices.agv') + ' - ' + curAgvNo);
+        }
+
+        return () => {
+            setTitle(null);
+        }
+    }, [curAgvNo])
+
     return (
         <Box sx={{ height: '100%', display: 'flex', flexDirection: 'column' }}>
             <Tabs

--
Gitblit v1.9.1