|
@@ -195,17 +195,15 @@ export default defineComponent({
|
|
|
dotScale: this.dotScale,
|
|
|
autoColor: toBoolean(this.autoColor),
|
|
|
components: this.components
|
|
|
- } as any
|
|
|
+ } as any;
|
|
|
if (logoImg) {
|
|
|
- obj.logoImg = logoImg + '?' + new Date().getTime()
|
|
|
+ obj.logoImage = logoImg + '?' + new Date().getTime();
|
|
|
}
|
|
|
- new AwesomeQR(obj)
|
|
|
- .draw()
|
|
|
- .then((dataUri: any) => {
|
|
|
- console.log('🚀 ~ dataUri:', dataUri);
|
|
|
- this.imgUrl = dataUri;
|
|
|
- this.callback && this.callback(dataUri, this.qid);
|
|
|
- });
|
|
|
+ new AwesomeQR(obj).draw().then((dataUri: any) => {
|
|
|
+ console.log('🚀 ~ dataUri:', dataUri);
|
|
|
+ this.imgUrl = dataUri;
|
|
|
+ this.callback && this.callback(dataUri, this.qid);
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
render() {
|