从AGV加载
This commit is contained in:
@@ -285,10 +285,10 @@ createApp({
|
|||||||
try {
|
try {
|
||||||
const res = await fetch(API + '/api/agv/position')
|
const res = await fetch(API + '/api/agv/position')
|
||||||
const data = await res.json()
|
const data = await res.json()
|
||||||
if (data.ok && data.position) {
|
if (data.ok && data.position && data.position.length >= 3) {
|
||||||
this.pointEditor.x = data.position.x || 0
|
this.pointEditor.x = data.position[0] || 0
|
||||||
this.pointEditor.y = data.position.y || 0
|
this.pointEditor.y = data.position[1] || 0
|
||||||
this.pointEditor.yaw = data.position.yaw || 0
|
this.pointEditor.yaw = data.position[2] || 0
|
||||||
} else {
|
} else {
|
||||||
alert('读取AGV位置失败')
|
alert('读取AGV位置失败')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>设置 - AGV 拍摄系统</title>
|
<title>设置 - AGV 拍摄系统</title>
|
||||||
<link rel="stylesheet" href="/static/css/style.css?v=20260520i">
|
<link rel="stylesheet" href="/static/css/style.css?v=20260525a">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
@@ -581,7 +581,7 @@
|
|||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/static/js/vue3.global.prod.js?v=20260520i"></script>
|
<script src="/static/js/vue3.global.prod.js?v=20260525a"></script>
|
||||||
<script src="/static/js/setting.js?v=20260520i"></script>
|
<script src="/static/js/setting.js?v=20260525a"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user