//复制
copyUrl (url) {
// 模拟 输入框
let cInput = document.createElement("input");
cInput.value = url;
document.body.appendChild(cInput);
// 选取文本框内容
cInput.select();
// 执行浏览器复制命令
// 复制命令会将当前选中的内容复制到剪切板中(这里就是创建的input标签)
// Input要在正常的编辑状态下原生复制方法才会生效
document.execCommand("copy");
this.$message({ type: "success", message: "复制成功" });
// 复制成功后再将构造的标签 移除
document.body.removeChild(cInput);
},