This commit is contained in:
ywb
2026-06-05 20:50:38 +08:00
parent 4126e01bba
commit 696bf2ef6e
3 changed files with 42 additions and 16 deletions
+12
View File
@@ -244,6 +244,18 @@ createApp({
body: JSON.stringify({ qr: 'SKIP' })
})
},
async rescanQr() {
this.showQrModal = false
this.qrValue = ''
this.qrSubmitting = true
await fetch(API + '/api/mission/manual-qr', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ qr: 'RESCAN' })
})
// 4秒后允许弹窗重新出现(后端重试扫码约3秒)
setTimeout(() => { this.qrSubmitting = false }, 4000)
},
onAgvPreviewError(e) {
e.target.style.display = 'none'
},