xcx 4 лет назад
Родитель
Сommit
033ea69856
1 измененных файлов: 5 добавлений и 1 удалений
  1. 5
    1
      src/pages/index/index.js

+ 5
- 1
src/pages/index/index.js Просмотреть файл

@@ -123,7 +123,11 @@ export default class Index extends Component {
123 123
     const city = this.state.city || this.props.curCity
124 124
     if (city && city.id) {
125 125
       ready.queue(() => {
126
-        this.loadData({ curCity: city })
126
+        this.setState({
127
+          CityData: city
128
+        }, () => {
129
+          this.loadData({ curCity: city })
130
+        })
127 131
       })
128 132
     }
129 133
   }