运行显示两个摄像头

This commit is contained in:
ywb
2026-05-23 19:40:52 +08:00
parent adcd7e0a2c
commit d095d68433
3 changed files with 23 additions and 4 deletions
+8
View File
@@ -912,3 +912,11 @@ a:hover { text-decoration: underline; }
0%, 100% { opacity: 1; }
50% { opacity: 0.3; }
}
/* ========== 运行页双摄像头 ========== */
.camera-dual {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-top: 12px;
}
+6 -2
View File
@@ -10,7 +10,8 @@ createApp({
progress: 0,
tasks: [],
report: null,
previewUrl: API + '/api/camera/preview',
agvPreviewUrl: API + '/api/camera/preview',
armPreviewUrl: API + '/api/camera/arm_refresh',
polling: null,
logs: [],
showQrModal: false,
@@ -123,7 +124,10 @@ createApp({
body: JSON.stringify({ qr: 'SKIP' })
})
},
onPreviewError(e) {
onAgvPreviewError(e) {
e.target.style.display = 'none'
},
onArmPreviewError(e) {
e.target.style.display = 'none'
}
}