Skip to content

Commit

Permalink
Update develop-complex-spa.md (dvajs#2113)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjx0820 authored and sorrycc committed May 28, 2019
1 parent 83027c7 commit c752cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/develop-complex-spa.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function RouterConfig({ history, app }) {

从业务场景来说,有不少场景是可以做全局model的,比如说,我们在路由之间前进后退,model可以用于在路由间共享数据,比较典型的,像列表页和详情页的互相跳转,就可以用同一份model去共享它们的数据。

注意,如果当前应用中加载了不止一个model,在其中一个的effect里面做select操作,是可以获取另外一个中的state的
注意,如果当前应用中加载了不止一个model,在其中一个的effect里面做select操作,是可以获取另外一个model中的state的

```JavaScript
*foo(action, { select }) {
Expand Down

0 comments on commit c752cd9

Please sign in to comment.