|
|
|
@ -14,13 +14,26 @@ class SiderBar extends Component {
|
|
|
|
|
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
window._initSider();
|
|
|
|
|
var trophy_uid = false;
|
|
|
|
|
if (window.localStorage) {
|
|
|
|
|
trophy_uid = localStorage.getItem('trophy_uid');
|
|
|
|
|
} else {
|
|
|
|
|
trophy_uid = false
|
|
|
|
|
}
|
|
|
|
|
if(trophy_uid==="true"||trophy_uid===true){
|
|
|
|
|
this.setState({
|
|
|
|
|
trophyreturn:true
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
trophyreturnfun=()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
trophyreturn:true
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
trophyreturnfun=()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
trophyreturn:true
|
|
|
|
|
})
|
|
|
|
|
localStorage.setItem('trophy_uid', true);
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|