Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request获取数据由props传入 #68

Closed
wowtrxqn opened this issue Jul 31, 2020 · 1 comment
Closed

request获取数据由props传入 #68

wowtrxqn opened this issue Jul 31, 2020 · 1 comment
Labels

Comments

@wowtrxqn
Copy link

wowtrxqn commented Jul 31, 2020

async (params = {}) => new Promise<{ data: IStoreNodeRows[] }>((resolve, reject) => {
              resolve({
                 data: dataSource
               })
             })
}```
这里的dataSource 由props传入,  如果dataSource 写成死数据可以显示,但是换成props.dataSource后不显示
@chenshuai2144
Copy link
Contributor

直接用

request 是惰性的,需要触发才行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants