Skip to content

Commit

Permalink
增加了reducers中store.js,功能还没实现
Browse files Browse the repository at this point in the history
  • Loading branch information
HeeBooo committed Feb 2, 2018
1 parent 29c9b6e commit 20827fc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/containers/Detail/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class Detail extends PureComponent {
// 跳转到用户主页
toUser = () => {
this.props.history.push('/user');
// this.props.history.push(`/search/all/${encodeURIComponent(value)}`);
};

// 检查登录状态,不管是收藏还是购买,都需要登录后才能进行
Expand Down
3 changes: 2 additions & 1 deletion src/containers/Detail/subpage/Buy.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ class Buy extends PureComponent {
if (!loginFlag) {
return;
};
// 此过程为模拟购买,因此可省去复杂的购买过程

// 购买流程
// 跳转到用户界面
this.props.toUser();
};
};
Expand Down
Empty file added src/reducers/store.js
Empty file.

0 comments on commit 20827fc

Please sign in to comment.