|
|
|
@ -71,6 +71,9 @@ |
|
|
|
}, |
|
|
|
(decodedText, decodedResult) => { |
|
|
|
window.location.href = decodedText; |
|
|
|
if (state.html5QrCode&&state.html5QrCode.isScanning) { |
|
|
|
stop(); |
|
|
|
} |
|
|
|
console.log("decodedText", decodedText); |
|
|
|
console.log("decodedResult", decodedResult); |
|
|
|
} |
|
|
|
@ -107,6 +110,9 @@ |
|
|
|
}; |
|
|
|
const clickBack = () => { |
|
|
|
//console.log(1) |
|
|
|
if (state.html5QrCode&&state.html5QrCode.isScanning) { |
|
|
|
stop(); |
|
|
|
} |
|
|
|
router.back(); |
|
|
|
} |
|
|
|
const getCameras = () => { |
|
|
|
@ -118,6 +124,7 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
console.log(err) |
|
|
|
alert("摄像头无访问权限!"); |
|
|
|
}); |
|
|
|
}; |
|
|
|
|