forest_****_1: 第一个直接用img的形式,浏览器报错 pay-way.vue:380 Error: You need to specify a canvas element at getCanvasElement (qrcode.js?v=a25b60a7:1998:15) at Object.render (qrcode.js?v=a25b60a7:2009:20) at renderToDataURL (qrcode.js?v=a25b60a7:2028:32) at renderCanvas (qrcode.js?v=a25b60a7:2152:18) at createQrCode (pay-way.vue:378:12) at pay-way.vue:276:9 at Object.success (order.vue:346:9) at RestClient.responseHandle (restful-client.js:180:20) at restful-client.js:165:18
Vue3+Vite开发的项目进行加密打包
在Vue3中使用qrcode库实现二维码生成