From 66e34913dbd9800ad1214a482361311014b17f45 Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Fri, 20 Aug 2021 13:10:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=AE=A1=E7=90=86=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=A4=8D=E5=88=B6url=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report-ui/src/views/file-management/index.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/report-ui/src/views/file-management/index.vue b/report-ui/src/views/file-management/index.vue index 3d318809..97454420 100644 --- a/report-ui/src/views/file-management/index.vue +++ b/report-ui/src/views/file-management/index.vue @@ -7,6 +7,7 @@ @@ -184,6 +185,22 @@ export default { customButtom(val) { this.downloadFile(val.msg) }, + copyUrlPath(val){ + this.copyToClip(val.msg.urlPath) + this.$message({ + message: '已将url路径复制至剪切板!', + type: 'success', + }) + }, + copyToClip(content, message) { + var aux = document.createElement("input"); + aux.setAttribute("value", content); + document.body.appendChild(aux); + aux.select(); + document.execCommand("copy"); + document.body.removeChild(aux); + }, + }, }