diff --git a/src/views/operation/seaexport/detail/modules/basicInfo.vue b/src/views/operation/seaexport/detail/modules/basicInfo.vue index 8e3b713e..07edfa9a 100644 --- a/src/views/operation/seaexport/detail/modules/basicInfo.vue +++ b/src/views/operation/seaexport/detail/modules/basicInfo.vue @@ -198,13 +198,23 @@ } // 复制单号 const copyTxt = (v, key) => { - navigator.clipboard.writeText(v.values[key]) - createMessage.success('复制成功') + const el = document.createElement('input') + el.setAttribute('value', v.values[key]) + document.body.appendChild(el) + el.select() + document.execCommand('copy') + document.body.removeChild(el) + createMessage.success('复制成功!') } // 复制委托编号 const copyNo = (v) => { - navigator.clipboard.writeText(v) - createMessage.success('复制成功') + const el = document.createElement('input') + el.setAttribute('value', v) + document.body.appendChild(el) + el.select() + document.execCommand('copy') + document.body.removeChild(el) + createMessage.success('复制成功!') } // 编辑委托编号 const customerNoRef = ref(null)