小程序中数据一直在请求的问题?

小程序 文章 2021-03-30 16:02 463 0 全屏看文

AI助手支持GPT4.0

小程序中数据一直在请求的问题?Is there a problem that data is always being requested in the applet?

小程序中数据一直在请求的问题?

小程序登录的时候都能获取到数据库的时候,但是获取人员数据的时候,一直在请求中。

前端代码:

后端接口代码:

开发工具测试:

真机测试:

When the applet logs in, it can get the database, but when it gets the personnel data, it is always in the request. Test code: front end development tool:

回答:

______倘若。:

是因为没走success方法吧,输出一下看看

this:

你这不叫一直请求中,你这叫没有执行wx.hideLoading(),看下接口返回就能解决的事

Brother斌🎈:

没进success方法所以关不了loading?

-EOF-

AI助手支持GPT4.0