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 | 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