Browse Source

报价订单二维码

yaoyao 2 years ago
parent
commit
68ed6fd026
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/views/Task/daikeComponents/KtOrder.vue

+ 3 - 2
src/views/Task/daikeComponents/KtOrder.vue

@@ -1422,12 +1422,14 @@ export default {
     //二维码生成插件
     creatQrCode(text) {
       // 查找并删除旧的二维码DOM元素
+      this.$refs['qrcode'].innerHTML = ''
       let element = document.getElementById("qrcode");
       while (element.firstChild) {
         element.removeChild(element.firstChild);
       }
       // 创建新的QRCode实例
-      this.qrcode = new QRCode("qrcode", {
+      // this.qrcode = new QRCode("qrcode", {
+      this.qrcode = new QRCode(this.$refs['qrcode'], {
         text: text,
         width: this.qrcodeWidth,
         height: this.qrcodeHeight,
@@ -3539,7 +3541,6 @@ export default {
   border-bottom: none;
 }
 
-.Risk_title>div:nth-child(1) {}
 
 .Risk_title>div:nth-child(2) {
   border-left: none;