test: keep PDA route contracts portable

This commit is contained in:
2026-09-04 12:41:58 +08:00
parent f53d27e6bb
commit 881c27353d
4 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -529,7 +529,7 @@
this.remoteTaskId = options.taskId ? String(options.taskId) : null
}
},
async onShow() {
async onShow() {
if (!requireSession()) return
this.currentUser = session.currentUser
this.startHardwareScanner()
@@ -544,14 +544,14 @@
}
await this.refreshAvailableBoxes()
await this.syncRemoteTask()
},
onHide() {
},
onHide() {
if (this.evidencePreviewOpening) {
this.evidencePreviewOpening = false
this.evidencePreviewReturning = true
}
this.stopHardwareScanner()
},
},
onUnload() { this.stopHardwareScanner(); this.persistSession(); this.clearTimers() },
beforeUnmount() { this.stopHardwareScanner(); this.clearTimers() },
onBackPress() {