Skip to content

decode event execute twice #66

@marshall-li

Description

@marshall-li

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions