Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decode event execute twice #66

Open
marshall-li opened this issue Apr 29, 2024 · 0 comments
Open

decode event execute twice #66

marshall-li opened this issue Apr 29, 2024 · 0 comments

Comments

@marshall-li
Copy link

I am using vue-barcode-reader in vue2.0.vue-barcode-reader version is 0.0.3

<StreamBarcodeReader @decode="onDecode" @loaded="onLoaded">
onDecode(decodedString) {
this.$refs.audio.play()
alert(decodedString);
this.scanSuccess(decodedString)
this.showScan = false
},

I found the decode event execute twice. because the alert execute twice. If i want this event execute once. what can i do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant