From b5fab0f8a63ed4258cd95cc8bb5f05276c0df7c0 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Wed, 19 Aug 2020 11:50:08 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20Api=20Keys=20=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/components/settings/personal/ApiKeys.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/business/components/settings/personal/ApiKeys.vue b/frontend/src/business/components/settings/personal/ApiKeys.vue index 7b7c55aa5a..c9c16c9c68 100644 --- a/frontend/src/business/components/settings/personal/ApiKeys.vue +++ b/frontend/src/business/components/settings/personal/ApiKeys.vue @@ -23,7 +23,7 @@
- +
@@ -63,7 +63,7 @@ {{ currentRow.secretKey }} - + @@ -145,7 +145,7 @@ export default { this.apiKeysVisible = true; this.currentRow = row; }, - copy(row, key) { + copy(row, key, visible) { let input = document.createElement("input"); document.body.appendChild(input); input.value = row[key]; @@ -155,9 +155,9 @@ export default { } document.execCommand("copy"); document.body.removeChild(input); - row.visible = true; + row[visible] = true; setTimeout(() => { - row.visible = false; + row[visible] = false; }, 1000); }, }