// 复制订单号
orderCopy(value) {
var input = document.createElement("input"); // 直接构建input
input.value = value; // 设置内容
document.body.appendChild(input); // 添加临时实例
input.select(); // 选择实例内容
document.execCommand("Copy"); // 执行复制
document.body.removeChild(input); // 删除临时实例
this.$message({
type: "success",
duration: 500,
message: "复制成功!",
});
},
网友评论