dev_aliyun
杨树明 5 years ago
parent 204f437969
commit 122e33a1e3

@ -14,12 +14,25 @@ class SiderBar extends Component {
componentDidMount() { componentDidMount() {
window._initSider(); 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=()=>{ trophyreturnfun=()=>{
this.setState({ this.setState({
trophyreturn:true trophyreturn:true
}) })
localStorage.setItem('trophy_uid', true);
} }
render() { render() {
return ( return (

Loading…
Cancel
Save