Commit bde60b8e by chenshu

fix:修复列表

parent a9bf9b7f
......@@ -53,7 +53,7 @@ export default class CollegeManagePage extends React.Component {
Service.Hades('public/customerHades/getStoreListUser', params).then((res) => {
const list = res.result;
if (!User.getStoreId()) {
const mainStore = _.find(list, item => item.mainStore) || {};
const mainStore = _.find(list, item => item.mainStore) || list[0] || {};
User.setStoreId(mainStore.id);
User.setStoreUserId(mainStore.storeUserId);
}
......
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