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;