zhb 1 月之前
父节点
当前提交
217f36d97d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/QrCode.vue

+ 1 - 1
components/QrCode.vue

@@ -71,7 +71,7 @@ const props = defineProps({
         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() {