Sansnn / uQRCode

全端二维码生成插件
Apache License 2.0
179 stars 79 forks source link

支持动态导入吗 #32

Closed LynnHg closed 9 months ago

LynnHg commented 9 months ago

if (true) { const UQRCode = await import('uqrcodejs'); } 执行上面的代码报错: Uncaught (in promise) TypeError: UQRCode is not a constructor

LynnHg commented 9 months ago

使用new UQRCode.default()解决了