-
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user