From 3e22bc0957820871b0a329a8c55e48054b496c0a Mon Sep 17 00:00:00 2001 From: X_Rian <904416525@qq.com> Date: Wed, 7 Aug 2024 18:29:46 +0800 Subject: [PATCH] =?UTF-8?q?flx=EF=BC=9A=E5=A4=8D=E5=88=B6=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=A4=8D=E5=88=B6=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/projectFront/projectSummary/contractorAudit.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/projectFront/projectSummary/contractorAudit.vue b/src/views/projectFront/projectSummary/contractorAudit.vue index 1b0a15f1..d37dfe5e 100644 --- a/src/views/projectFront/projectSummary/contractorAudit.vue +++ b/src/views/projectFront/projectSummary/contractorAudit.vue @@ -764,11 +764,12 @@ export default { this.inviteCBSDialog = true; }, onCopy() { + const resultUrl = `${this.$store.state.userInfo.account}邀请您加入${this.$store.state.currentProDetail.name}\n邀请时间:${this.selectNowDate()}\n点击链接进入承包商入场申请:\n${this.inviteCBSUrl}`; if (navigator.clipboard && window.isSecureContext) { - navigator.clipboard.writeText(this.inviteCBSUrl); + navigator.clipboard.writeText(resultUrl); } else { let textArea = document.createElement("textarea"); - textArea.value = this.inviteCBSUrl; + textArea.value = resultUrl; // 使text area不在viewport,同时设置不可见 textArea.style.position = "absolute"; textArea.style.opacity = 0;