网盘点击按钮复制网址和提取码插件
npminstallvue-clipboard2-s在main里面引入CopyLink(){this.$copyText(`链接:${this.link} 提取码:${this.ExtractCode}`).then( (e)=> {this.$notify({title: '成功',messa...
·
npm install vue-clipboard2 -s
在main里面 引入
CopyLink(){
this.$copyText(`链接:${this.link} 提取码:${this.ExtractCode}`).then( (e)=> {
this.$notify({
title: '成功',
message: '复制成功',
type: 'success'
});
console.log(e)
},(e)=>{
this.$notify({
title: '失败',
message: '复制失败,请手动复制',
type: 'success'
});
})
},
更多推荐
已为社区贡献2条内容
所有评论(0)