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() {