This commit is contained in:
ywb
2026-06-13 14:07:19 +08:00
parent 48121b2a05
commit cbc88def27
14 changed files with 626 additions and 80 deletions
+8
View File
@@ -9,6 +9,7 @@ createApp({
tasks: [],
report: null,
armCameraOpened: false,
hasAgvCamera: false,
agvPreviewUrl: API + '/api/camera/preview',
armPreviewUrl: '',
polling: null,
@@ -70,6 +71,13 @@ createApp({
}
} catch (e) {}
},
async checkAgvCameraCapabilities() {
try {
const res = await fetch(API + '/api/camera/capabilities')
const data = await res.json()
this.hasAgvCamera = data.has_agv_camera
} catch (e) { this.hasAgvCamera = false }
},
poll() {
this.refresh()
this.pollLogs()