problem description
an error is reported when using vue-qr to generate a QR code.
< template >
< div class= "bgfff" >
<vue-qr :size="200" text="hello world!"></vue-qr>
< / div >
< / template >
< script >
import ClipboardJS from "clipboard";
import VueQr from "vue-qr";
import {
Toast
} from "vant";
export default {
head() {
return {
title: ""
};
},
components:{
VueQr
},
data() {
return {
ddkUrl: require("~/assets/images/help/dkd-qrcode.png"),
config:{
value:"www.baidu.com"
// imagePath:
},
},
};
< / script >