<a-button type="link" @click.stop="copyLink(record)">复制链接</a-button>
copyLink(record) {
const input = document.createElement('input')
input.setAttribute('readonly', 'readonly')
input.setAttribute('value', `http://www.baidu.com/`)
document.body.appendChild(input)
input.select()
if (document.execCommand('copy')) {
document.execCommand('copy')
}
document.body.removeChild(input)
this.$message.success('复制成功')
},
copy(record) {
let target = document.createElement('input')
target.value = record.value+ '';
document.body.appendChild(target)
target.select()
document.execCommand('Copy')
this.$toast('复制成功')
target.remove()
},