|
@@ -34,7 +34,9 @@ function Hardware() {
|
|
|
|
|
|
return `${styles.icon} ${statusClassName}`;
|
|
|
});
|
|
|
-
|
|
|
+ const onHandleClick = item => {
|
|
|
+ UnityAction.sendMsg('SingleDevLocate', JSON.stringify([item]));
|
|
|
+ };
|
|
|
useEffect(() => {
|
|
|
if (!draw) return;
|
|
|
run(projectId);
|
|
@@ -56,6 +58,7 @@ function Hardware() {
|
|
|
key={item.id}
|
|
|
className={`card-box ${styles.item}`}
|
|
|
style={{ justifyContent: 'space-between' }}
|
|
|
+ onClick={() => onHandleClick(item)}
|
|
|
>
|
|
|
<div>
|
|
|
<i
|