时间币刷新

master
pan 5 years ago
parent 7fbbc9086d
commit 6f32dd0a64
  1. 2
      src/Main.tsx
  2. 3
      src/my/MyInfo.tsx

@ -234,7 +234,7 @@ export class Main extends React.Component<
if('timeScore' in value){ if('timeScore' in value){
this.props.cookies.set(time_score,value.timeScore) this.props.cookies.set(time_score,value.timeScore)
this.setState({ this.setState({
userType:value.userType, timeScore:value.timeScore,
changeTip:<h3 className='text-center text-info'></h3> changeTip:<h3 className='text-center text-info'></h3>
}) })
} }

@ -377,7 +377,8 @@ export class MyInfo extends React.Component<
}) })
if(this.props.cookies?.get(user_type_cookie)!==this.state.userEdit.userType&&this.props.refreshFun) { if(this.props.cookies?.get(user_type_cookie)!==this.state.userEdit.userType&&this.props.refreshFun) {
this.props.refreshFun({ this.props.refreshFun({
userType:this.state.userEdit.userType userType:this.state.userEdit.userType,
}) })
} }
}}/> }}/>

Loading…
Cancel
Save