|
|
@ -231,14 +231,14 @@ export default { |
|
|
|
this.$refs["edit"].init(row, "A"); |
|
|
|
}, |
|
|
|
copySecret (row) { |
|
|
|
const { secret } = row; |
|
|
|
const { } = row; |
|
|
|
let info = {'appId':row.appId,"secret":row.secret,"customerId":row.customerId} |
|
|
|
var aux = document.createElement("input"); |
|
|
|
aux.setAttribute("value", secret); |
|
|
|
aux.setAttribute("value", JSON.stringify(info)); |
|
|
|
document.body.appendChild(aux); |
|
|
|
aux.select(); |
|
|
|
document.execCommand("copy"); |
|
|
|
document.body.removeChild(aux); |
|
|
|
console.log("复制成功", secret); |
|
|
|
this.$message({ |
|
|
|
type: "success", |
|
|
|
message: "复制成功", |
|
|
|