@@ -161,9 +161,15 @@
execCommand(action) {
let is = document.execCommand(action);
if (is) {
- console.log("复制成功");
+ this.$message({
+ message: '复制成功',
+ type: 'success'
+ })
} else {
- console.log("复制失败");
+ message: '复制失败',
+ type: 'error'
}
},
// 截取url中的数据