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

@ -16,6 +16,14 @@ function jsCopy() {
e.select(); e.select();
document.execCommand("Copy"); document.execCommand("Copy");
codesuccess() 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() { function codesuccess() {
@ -152,8 +160,8 @@ class PersonalCompetititem extends React.Component {
</div> </div>
<div style={{ <div style={{
overflow: 'hidden', overflow: 'hidden',
height: "0px", height: "1px",
width: "0px" width: "1px"
}}> }}>
<input id="copy_invite_code" <input id="copy_invite_code"
value={data[0].invite_code === null || data[0].invite_code === undefined ? "" : data[0].invite_code}/> value={data[0].invite_code === null || data[0].invite_code === undefined ? "" : data[0].invite_code}/>

Loading…
Cancel
Save