<template v-if="column.key === 'operation'">
<span>
<a @click="copyID(record)">复制用户ID</a>
<a-divider type="vertical" />
<a @click="recoveyEvent(record)">恢复</a></span
>
</template>
const copyID = (record) => {
const input = document.createElement("input");
input.style.cssText = "opacity: 0;";
input.type = "text";
input.value = record.userId; // 修改文本框的内容
document.body.appendChild(input);
input.select(); // 选中文本
document.execCommand("copy"); // 执行浏览器复制命令
message.success("复制成功");
};