mirror of
https://github.com/timepill/timepill-app.git
synced 2025-05-25 11:49:13 +08:00
修复bug: 用户头像上传不更新问题
This commit is contained in:
parent
01991e9293
commit
4cf622c40d
2 changed files with 12 additions and 2 deletions
|
@ -12,6 +12,12 @@ export default class UserIcon extends Component {
|
|||
};
|
||||
}
|
||||
|
||||
static getDerivedStateFromProps(nextProps, prevState) {
|
||||
return {
|
||||
iconUrl: nextProps.iconUrl
|
||||
};
|
||||
}
|
||||
|
||||
_defaultOnPress() {
|
||||
// empty
|
||||
}
|
||||
|
|
|
@ -241,12 +241,16 @@ export default class WritePage extends Component {
|
|||
}
|
||||
|
||||
saveDiary() {
|
||||
if(!this.state.content) {
|
||||
return;
|
||||
}
|
||||
|
||||
let photoUri = this.state.photoUri;
|
||||
let topic = this.props.topic ? 1 : 0;
|
||||
|
||||
let waitingToast = Msg.showMsg('正在保存中', {
|
||||
duration: 10000,
|
||||
position: -150,
|
||||
position: -75,
|
||||
shadow: false,
|
||||
hideOnPress: false
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue