File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2020</template >
2121
2222<script >
23- import { QrcodeStream } from ' vue-qrcode-reader'
24-
2523export default {
2624 name: ' QRScanner' ,
27- components: { QrcodeStream },
2825 props: {
2926 title: {
3027 type: String ,
Original file line number Diff line number Diff line change @@ -4,8 +4,14 @@ import router from './router'
44import Components from './components'
55import i18n from './i18n'
66import store from './store'
7+ import VueQrcodeReader from 'vue-qrcode-reader'
78
89Vue . config . productionTip = false
10+ Vue . use ( VueQrcodeReader )
11+
12+ if ( ! MediaStreamTrack . prototype . getCapabilities ) {
13+ MediaStreamTrack . prototype . getCapabilities = ( ) => { }
14+ }
915
1016Object . keys ( Components ) . forEach ( key => {
1117 Vue . component ( key , Components [ key ] )
You can’t perform that action at this time.
0 commit comments