Update mission flow and inspection log scrolling
This commit is contained in:
@@ -381,8 +381,9 @@ createApp({
|
||||
} catch (e) { alert('导航失败: ' + e.message) }
|
||||
},
|
||||
async goToOrigin() {
|
||||
if (!confirm('确认导航到原点 (0, 0, 0)?')) return
|
||||
if (!confirm('确认先复原机械臂,再导航到原点 (0, 0, 0)?')) return
|
||||
try {
|
||||
this.mapMsg = '正在复原机械臂并发送原点导航...'
|
||||
const res = await fetch(API + '/api/navigate/to', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
@@ -390,7 +391,7 @@ createApp({
|
||||
})
|
||||
const data = await res.json()
|
||||
if (data.ok) {
|
||||
this.mapMsg = '✅ 已发送导航到原点'
|
||||
this.mapMsg = '✅ ' + (data.message || '已发送导航到原点')
|
||||
} else {
|
||||
this.mapMsg = '❌ ' + (data.error || '导航失败')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user