将多链接模式设为可点击,点击后效果为将row传入的字段复制到粘贴板
<template slot-scope="scope">
<span v-if="scope.row.type ==1">编程模式</span>
<span v-else-if="scope.row.type ==2" @click="copy(scope.row.url)">多链接模式(点击复制)</span>
</template>
copy(url) {
let _this = this;
this.$copyText(url).then(function (e) {
_this.$message.success('复制成功')
}, function (e) {
_this.$message.error('复制失败')
})
},