优化小程序码的生成
This commit is contained in:
parent
accc2df829
commit
3a17a007e5
@ -506,7 +506,7 @@ export default class extends Vue {
|
|||||||
const canvas = document.getElementById('qr_canvas') as HTMLCanvasElement
|
const canvas = document.getElementById('qr_canvas') as HTMLCanvasElement
|
||||||
if (!canvas) {
|
if (!canvas) {
|
||||||
return false
|
return false
|
||||||
} else {
|
}
|
||||||
// 可以理解为一个画笔,可画路径、矩形、文字、图像
|
// 可以理解为一个画笔,可画路径、矩形、文字、图像
|
||||||
const context = canvas.getContext('2d')
|
const context = canvas.getContext('2d')
|
||||||
context!.clearRect(0, 0, QR_WIDTH, QR_WIDTH)
|
context!.clearRect(0, 0, QR_WIDTH, QR_WIDTH)
|
||||||
@ -524,7 +524,6 @@ export default class extends Vue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private drawLogo(context: any) {
|
private drawLogo(context: any) {
|
||||||
const img = new Image()
|
const img = new Image()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user