|
|
@ -1947,10 +1947,11 @@ export default {
|
|
|
|
//环境判断
|
|
|
|
//环境判断
|
|
|
|
if (window.navigator.userAgent.indexOf("GLXP_PC") != -1) {
|
|
|
|
if (window.navigator.userAgent.indexOf("GLXP_PC") != -1) {
|
|
|
|
this.scanDisabled = true;
|
|
|
|
this.scanDisabled = true;
|
|
|
|
|
|
|
|
window.removeEventListener('gwsh', this.handleRecCodesEvent);
|
|
|
|
window.addEventListener('gwsh', this.handleRecCodesEvent);
|
|
|
|
window.addEventListener('gwsh', this.handleRecCodesEvent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
unmounted() {
|
|
|
|
beforeDestroy() {
|
|
|
|
window.removeEventListener('gwsh', this.handleRecCodesEvent);
|
|
|
|
window.removeEventListener('gwsh', this.handleRecCodesEvent);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|