From 5ef0ee0fcc3e3c9c1a02d3e2aafc5c96bf286db2 Mon Sep 17 00:00:00 2001 From: "hong.yang" Date: Mon, 8 Jan 2024 14:50:26 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=A4=A7=E5=B1=8F=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E9=A1=B5=E9=9D=A2=E6=96=B0=E5=A2=9E=E5=BF=AB=E9=80=9F?= =?UTF-8?q?=E5=A4=8D=E5=88=B6=E7=BC=96=E7=A0=81=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../packages/BigScreenList/EditForm.vue | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/data-room-ui/packages/BigScreenList/EditForm.vue b/data-room-ui/packages/BigScreenList/EditForm.vue index 15b04ff9..9fd9be5e 100644 --- a/data-room-ui/packages/BigScreenList/EditForm.vue +++ b/data-room-ui/packages/BigScreenList/EditForm.vue @@ -29,6 +29,25 @@ class="bs-el-input" /> + + + + + + @@ -390,6 +409,21 @@ export default { code: form.code } }) + }, + /** + * 复制大屏编码 + */ + copyCode () { + let code = this.dataForm.code + navigator.clipboard + .writeText(code) + .then(() => { + this.$message.success("复制成功"); + }) + .catch(err => { + this.$message.error("复制失败,请手动复制"); + console.error(err); + }) } } }