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