zy-acs-flow/src/map/MapPage.jsx
@@ -95,6 +95,8 @@ }, [mode]); const onDrop = (sprite, type, x, y) => { console.log(sprite, type, x, y); const { mapX, mapY } = Tool.getRealPosition(x, y); sprite.x = mapX; sprite.y = mapY; @@ -168,7 +170,7 @@ sx={{ mr: 1 }} onClick={() => setDeviceVisible(!deviceVisible)} > 添加模型 {translate('page.map.devices.title')} </Button> </> )}