Commit 6145c4b2 by chenshu

feat:完善各页面

parent 54848197
......@@ -48,7 +48,11 @@ export default class CollegeManagePage extends React.Component {
userId: User.getUserId(),
};
Service.Hades('public/customerHades/getStoreListUser', params).then((res) => {
this.setState({ list: res.result })
const list = res.result;
const mainStore = _.find(list, item => item.mainStore) || {};
User.setStoreId(mainStore.id);
User.setStoreUserId(mainStore.storeUserId);
this.setState({ list })
});
}
......
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