handlCopy() {
const input = document.createElement('input')
document.body.appendChild(input)
input.setAttribute('value', this.formInformation.productPublicKey) //内容
input.select()
if (document.execCommand('copy')) {
document.execCommand('copy')
}
document.body.removeChild(input)
this.$message({
message: '复制成功',
type: 'success'
})
},
网友评论