We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在使用该组件时就不用再去单独建立文件来写这个了,可以一起封装进去,就行v2版本的uview组件一样有一个http请求板块
类似于这种
const http = uni.$u.http // post请求,获取菜单 export const postMenu = (params, config = {}) => http.post('/ebapi/public_api/index', params, config) // get请求,获取菜单,注意:get请求的配置等,都在第二个参数中,详见前面解释 export const getMenu = (data) => http.get('/ebapi/public_api/index', data)
The text was updated successfully, but these errors were encountered:
可以使用axios、uni-network或者alova进行网络请求,组件库内部不提供此功能,我们希望可以将精力放在UI组件上。
Sorry, something went wrong.
No branches or pull requests
这个功能解决了什么问题?
在使用该组件时就不用再去单独建立文件来写这个了,可以一起封装进去,就行v2版本的uview组件一样有一个http请求板块
你期望的 API 是什么样子的?
类似于这种
const http = uni.$u.http
// post请求,获取菜单
export const postMenu = (params, config = {}) => http.post('/ebapi/public_api/index', params, config)
// get请求,获取菜单,注意:get请求的配置等,都在第二个参数中,详见前面解释
export const getMenu = (data) => http.get('/ebapi/public_api/index', data)
The text was updated successfully, but these errors were encountered: