copyContent() {
let link = '链接:' + this.successInfo.openLink + ';账号:' + this.successInfo.account + ';密码:' + this.successInfo.password
let copyInput = document.createElement('input')
document.body.appendChild(copyInput)
copyInput.setAttribute('value', link)
copyInput.select()
document.execCommand('copy')
this.$notify({
type: 'success',
message: '复制成功',
position: 'top-right',
showClose: false,
duration: 3000
})
copyInput.remove()
},
网友评论