From d0fb2d77c9070d7a55551f13d9cbd83d61a819e0 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 13 三月 2024 16:09:50 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/components/device.jsx |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/components/device.jsx b/zy-asrs-flow/src/pages/map/components/device.jsx
index 5e3f444..72a6818 100644
--- a/zy-asrs-flow/src/pages/map/components/device.jsx
+++ b/zy-asrs-flow/src/pages/map/components/device.jsx
@@ -3,6 +3,7 @@
 import { FormattedMessage, useIntl, useModel } from '@umijs/max';
 import * as PIXI from 'pixi.js';
 import { createStyles } from 'antd-style';
+import * as Utils from '../utils'
 
 const useStyles = createStyles(({ token, css }) => {
     let dark = token.colorBgBase === '#000';
@@ -36,6 +37,7 @@
 
 import agv from '/public/img/map/agv.svg'
 import shelf from '/public/img/map/shelf.png'
+import { Util } from '@antv/g6';
 
 const Device = (props) => {
     const { styles } = useStyles();
@@ -86,7 +88,7 @@
                             width='50px'
                             preview={false}
                             draggable="true"
-                            onDragStart={(e) => onDragStart(e, 'AGV')}
+                            onDragStart={(e) => onDragStart(e, Utils.SENSOR_TYPE.AGV)}
                         />
                         <div className={styles.title}>AGV</div>
                     </Col>
@@ -96,7 +98,7 @@
                             width='35px'
                             preview={false}
                             draggable="true"
-                            onDragStart={(e) => onDragStart(e, 'SHELF')}
+                            onDragStart={(e) => onDragStart(e, Utils.SENSOR_TYPE.SHELF)}
                         />
                         <div className={styles.title}>SHELF</div>
                     </Col>

--
Gitblit v1.9.1