We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e35e76d commit dd3f2a4Copy full SHA for dd3f2a4
umi/src/pages/todos/components/TodoList.js
@@ -22,7 +22,8 @@ export default props => {
22
split={false}
23
size="small"
24
//http://opentutorial.info/dva/%E5%89%8D%E7%AB%AF%E6%8A%80%E6%9C%AF/dva-loading-plugin/
25
- loading={props.loading.effects['todos/addTodoAsync']}
+ //loading={props.loading.effects['todos/addTodoAsync']} 此为只在addTodoAsync这个接口阻塞时显示loadding
26
+ loading={props.loading.models['todos']} // 在整个todos model里的接口阻塞时显示loadding
27
locale={{
28
emptyText: <span>来搞点事情吧</span>,
29
}}
0 commit comments