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); + }, + }, }