copyText () {
let text = this.code
var input = document.getElementById('input')
input.value = text // 修改文本框的内容
input.select() // 选中文本
document.execCommand('copy') // 执行浏览器复制命令
this.$toast('复制成功')
},
copyText () {
let text = this.code
var input = document.getElementById('input')
input.value = text // 修改文本框的内容
input.select() // 选中文本
document.execCommand('copy') // 执行浏览器复制命令
this.$toast('复制成功')
},