百度分享通用设置项

 onAfterClick:function (cmd) {
              if ("weixin" == cmd){
                setTimeout(function(){
                  let url = location.href;
                  //把原来的二维码去掉
                document.getElementById("bdshare_weixin_qrcode_dialog_qr").innerText="";
                  let QRCode = require("qrcodejs2");
                  let qrcode = new QRCode(document.getElementById("bdshare_weixin_qrcode_dialog_qr"), {
                    width: 210,
                    height: 196
                  });
                  qrcode.makeCode(url); // make another code.
                },500)
              }
            }