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