Authored by 于良

修复导航栈错误的问题 review by 盖剑秋

@@ -80,8 +80,12 @@ class PostingContainer extends Component{ @@ -80,8 +80,12 @@ class PostingContainer extends Component{
80 } 80 }
81 81
82 componentWillUnmount() { 82 componentWillUnmount() {
  83 + let key = this.props.navigationState.key;
  84 + let index = key.substring(0, 1);
  85 + if (index == 1) {
83 Actions.refresh({key: 'Home', showNativeTabBar: true}); 86 Actions.refresh({key: 'Home', showNativeTabBar: true});
84 } 87 }
  88 + }
85 89
86 componentWillReceiveProps(nextProps) { 90 componentWillReceiveProps(nextProps) {
87 if (this.props.posting.dataValid) { 91 if (this.props.posting.dataValid) {