From 77ac6b72ed82d51d0d45bf156ac1b5bb3cb15782 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期二, 19 三月 2024 14:01:43 +0800
Subject: [PATCH] #

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

diff --git a/zy-asrs-flow/src/pages/map/components/device.jsx b/zy-asrs-flow/src/pages/map/components/device.jsx
index 948d8d3..72a6818 100644
--- a/zy-asrs-flow/src/pages/map/components/device.jsx
+++ b/zy-asrs-flow/src/pages/map/components/device.jsx
@@ -3,7 +3,7 @@
 import { FormattedMessage, useIntl, useModel } from '@umijs/max';
 import * as PIXI from 'pixi.js';
 import { createStyles } from 'antd-style';
-import './index.css'
+import * as Utils from '../utils'
 
 const useStyles = createStyles(({ token, css }) => {
     let dark = token.colorBgBase === '#000';
@@ -37,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();
@@ -87,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>
@@ -97,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