|
@@ -58,6 +58,7 @@ export default {
|
|
|
this.show = true
|
|
|
this.$nextTick(() => {
|
|
|
if (this.$refs.video) {
|
|
|
+ this.$toast('测试测试')
|
|
|
this.startScanner()
|
|
|
}
|
|
|
})
|
|
@@ -72,8 +73,9 @@ export default {
|
|
|
this.scanner = new QrScanner(
|
|
|
this.$refs.video,
|
|
|
result => {
|
|
|
+ this.$toast(result)
|
|
|
this.$emit('success', result)
|
|
|
- this.scanner.stop() // 扫描一次后停止
|
|
|
+ // this.scanner.stop() // 扫描一次后停止
|
|
|
// this.close()
|
|
|
},
|
|
|
{ preferredCamera: 'environment' } // 优先使用后置摄像头
|