(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6e4aceda"],{"24fc":function(t,r,e){"use strict";e("3a28")},"3a28":function(t,r,e){},e5c7:function(t,r,e){"use strict";e.r(r);var a=function(){var t=this,r=t._self._c;return r("div",{staticClass:"saoma"},[r("qrcode-stream",{staticStyle:{height:"90vh",width:"100vw"},on:{decode:t.onDecode,init:t.onInit}},[r("div",[r("div",{staticClass:"qr-scanner"},[r("div",{staticClass:"box"},[r("div",{staticClass:"line"}),r("div",{staticClass:"angle"})])])])])],1)},o=[],s={data(){return{result:"",error:""}},methods:{onDecode(t){t&&this.$router.push({path:"/",query:{code:t}})},async onInit(t){try{await t}catch(r){"NotAllowedError"===r.name?(window.alert("您需要授予相机访问权限"),this.$router.push({path:"/"})):"NotFoundError"===r.name?(this.$router.push({path:"/"}),window.alert("这个设备上没有摄像头")):"NotSupportedError"===r.name?(this.$router.push({path:"/"}),window.alert("所需的安全上下文(HTTPS、本地主机)")):"NotReadableError"===r.name?(this.$router.push({path:"/"}),window.alert("相机被占用")):"OverconstrainedError"===r.name?(this.$router.push({path:"/"}),window.alert("安装摄像头不合适")):"StreamApiNotSupportedError"===r.name&&(this.$router.push({path:"/"}),window.alert("此浏览器不支持流API"))}}}},n=s,i=(e("24fc"),e("2877")),c=Object(i["a"])(n,a,o,!1,null,"6b630bc8",null);r["default"]=c.exports}}]);