|
@@ -71,7 +71,7 @@ const props = defineProps({
|
|
|
default: 0.22
|
|
default: 0.22
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
-const canvasId = `qr_${Date.now()}`
|
|
|
|
|
|
|
+const canvasId = `qr_${Date.now()}_${Math.floor(Math.random() * 10000000000).toString().padStart(10, '0')}`
|
|
|
|
|
|
|
|
/** 绘制二维码 */
|
|
/** 绘制二维码 */
|
|
|
async function drawQr() {
|
|
async function drawQr() {
|