Commit 281d17c7 by zhujian

'fixed'

parent 7f9dd086
......@@ -72,9 +72,7 @@ class CourseSelect extends React.Component {
loading: false,
totalCount: Number(total),
});
}).finally((res) => {
this.setState({ loading: false });
});
})
}
handleCourseSelect = (course) => {
......
......@@ -106,9 +106,7 @@ class CourseSelect extends React.Component {
loading: false
});
}).finally((res) => {
this.setState({ loading: false });
});
})
}
......
......@@ -28,7 +28,7 @@ class LiveCoursePage extends React.Component {
const params = {
...query,
..._query,
storeId:User.getStoreId()
storeId: User.getStoreId()
};
this.setState({ query: params });
CourseService.getLiveCloudCoursePage(params).then((res) => {
......@@ -37,9 +37,7 @@ class LiveCoursePage extends React.Component {
total,
courseList: records
});
}) .finally(() => {
this.setState({ loading: false });
});
})
}
render() {
const { query, total, courseList } = this.state;
......@@ -56,7 +54,7 @@ class LiveCoursePage extends React.Component {
total={total}
courseList={courseList}
onChange={this.handleFetchLiveList}
/>
/>
</div>
</div>
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment