以上效果 给按钮传像覅值得内容 就是e
copyCode(e) {
let oInput = document.createElement("input");
//这边为链接地址this.liveLink='www.baidu.com'
oInput.value = e;
document.body.appendChild(oInput);
oInput.select();
document.execCommand("Copy");
oInput.remove();
this.$modal.msgSuccess("复制成功")
},