This commit is contained in:
yumoqing 2026-02-25 14:48:43 +08:00
parent 337787ca61
commit f90a1ada97

View File

@ -43,8 +43,8 @@ bricks.QRCodeScan = class extends bricks.VBox {
} }
stop(){ stop(){
if (this.scanner && this.scanner.getState() !== Html5QrcodeScannerState.NOT_STARTED) { if (this.scanner && this.scanner.getState() !== Html5QrcodeScannerState.NOT_STARTED) {
this.scanner.stop() this.scanner.stop();
this.dispatch('stopped', decodedText) this.dispatch('stopped');
} }
} }
} }