You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
组件中的引入方式: import QRCode from 'qrcode'
js代码: show() {
let qrcode = new QRCode(document.getElementById('pwdBox'), {
width: 96, // 设置宽高
height: 96,
})
qrcode.makeCode('abcdefghijklmn')
},
报错: _qrcode2.default is not a constructor
at VueComponent.getCode (intelligent-key.js:3529)
at boundFn (vendor.js:4901)
at HTMLDivElement.invoker (vendor.js:6470)
请问这个问题该怎么解决?
The text was updated successfully, but these errors were encountered:
组件中的引入方式: import QRCode from 'qrcode'
js代码: show() {
let qrcode = new QRCode(document.getElementById('pwdBox'), {
width: 96, // 设置宽高
height: 96,
})
qrcode.makeCode('abcdefghijklmn')
},
报错: _qrcode2.default is not a constructor
at VueComponent.getCode (intelligent-key.js:3529)
at boundFn (vendor.js:4901)
at HTMLDivElement.invoker (vendor.js:6470)
请问这个问题该怎么解决?
The text was updated successfully, but these errors were encountered: