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

[新功能需求] 请在此填写标题希望增加http请求板块 #892

Closed
leyouhua opened this issue Feb 12, 2025 · 1 comment
Closed
Labels
feature: need confirm 待确认的新特性 wontfix This will not be worked on

Comments

@leyouhua
Copy link

这个功能解决了什么问题?

在使用该组件时就不用再去单独建立文件来写这个了,可以一起封装进去,就行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)

@leyouhua leyouhua added the feature: need confirm 待确认的新特性 label Feb 12, 2025
@Moonofweisheng
Copy link
Owner

可以使用axios、uni-network或者alova进行网络请求,组件库内部不提供此功能,我们希望可以将精力放在UI组件上。

@Moonofweisheng Moonofweisheng added the wontfix This will not be worked on label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: need confirm 待确认的新特性 wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants