From 959c896aa3ff3e7160b3fb1ae2b748f2fe7c9049 Mon Sep 17 00:00:00 2001 From: wuchao Date: Thu, 10 Apr 2025 18:08:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=86=E6=9E=90=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E5=92=8C=E5=AF=86=E7=A0=81=E6=97=A0=E6=B3=95=E5=A4=8D?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/project/ShareConfig/index.vue | 33 +++---------------- 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/front/src/views/project/ShareConfig/index.vue b/front/src/views/project/ShareConfig/index.vue index 8b636d4b..d3a3fe06 100644 --- a/front/src/views/project/ShareConfig/index.vue +++ b/front/src/views/project/ShareConfig/index.vue @@ -16,7 +16,7 @@ @@ -30,7 +30,7 @@ @@ -492,33 +492,8 @@ export default { }) }) }, - copyUrl(url) { - navigator.clipboard.writeText(url).then(() => { - this.$message({ - message: this.$t('copySuccess'), - type: 'success', - duration: 2000 - }); - }).catch(() => { - this.$message({ - message: this.$t('copyFailed'), - type: 'error' - }); - }); - }, - copyPassword(password) { - navigator.clipboard.writeText(password).then(() => { - this.$message({ - message: this.$t('copySuccess'), - type: 'success', - duration: 2000 - }); - }).catch(() => { - this.$message({ - message: this.$t('copyFailed'), - type: 'error' - }); - }); + copy(text) { + this.copyText(text) } } } -- Gitee