const input = document.createElement('input');
input.setAttribute('value',`${window.location.origin}?plateid=${res.result}`);
document.body.appendChild(input);
input.focus()//获取焦点
input.select()//选中输入框
document.execCommand('copy',true)//复制当前选中文本到前切板
document.body.removeChild(input);