dev_sync_trustie
杨树林 5 years ago
parent 289913d939
commit 3b81009251

@ -16,6 +16,14 @@ function jsCopy() {
e.select();
document.execCommand("Copy");
codesuccess()
// const range=document.createRange();
// window.getSelection().removeAllRanges();
// range.selectNode(e.target);
// window.getSelection().addRange(range);
// const successful =document.execCommand('copy');
// if(successful){
// codesuccess()
// }
}
function codesuccess() {
@ -152,8 +160,8 @@ class PersonalCompetititem extends React.Component {
</div>
<div style={{
overflow: 'hidden',
height: "0px",
width: "0px"
height: "1px",
width: "1px"
}}>
<input id="copy_invite_code"
value={data[0].invite_code === null || data[0].invite_code === undefined ? "" : data[0].invite_code}/>

Loading…
Cancel
Save