zhb 1 месяц назад
Родитель
Сommit
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() {