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

检查状态设置为TRUE时,res为空 #7

Open
xhg221 opened this issue Dec 20, 2023 · 4 comments
Open

检查状态设置为TRUE时,res为空 #7

xhg221 opened this issue Dec 20, 2023 · 4 comments

Comments

@xhg221
Copy link

xhg221 commented Dec 20, 2023

解决了吗?我也遇到这个问题了,
作者的项目,我本地跑起来,列表为空时,空状态无法设置成功
res为空,请问怎么处理下

@WinWang
Copy link
Owner

WinWang commented Dec 20, 2023

晚上我处理下,你们的接口都有通用的code和message是把?

@xhg221
Copy link
Author

xhg221 commented Dec 20, 2023

是,你的项目中,列表为空时,都无法展示空状态,你可以试一下(请求时,直接将size写最大)
辛苦啦,期待上线

@WinWang
Copy link
Owner

WinWang commented Dec 20, 2023

两个问题:1、检查状态true的问题修改好了,参照TestPage页面的ViewModel的调用方式,以前的demo写法有问题,导致promise对象不统一,所以你们获取的res是undefined,周末我对所有接口请求做个修改 2.自己页面没有针对结果检查的情况需要自己在页面的回调处理判空逻辑,因为没有统一的标准处理,比如每个页面的响应list名字可能不一样,所以这个目前只能这样处理

@xhg221
Copy link
Author

xhg221 commented Dec 21, 2023

辛苦了

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

No branches or pull requests

2 participants