-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Get请求时 传键值对无法解析 #369
Comments
你好,请提供部分可复现的代码。 |
const list = ref([]); |
这看着不是 alova 的用法,你是不是在用 axios 或者其他的库? |
export const get = <T = any>(url: string, params?: T, loading?: Ref) => { |
我想解决的问题是 在 http query里怎么才能传键值对 |
了解了,原来你说的是嵌套对象下的序列化问题。 这个问题我们复现了。目前你暂时可以通过 qs 来手动序列化 params。 问题修复后我们会在这里回复 :) |
我也遇到了类似的问题,现在 alova 的 params 总的数组会被转换成 1,2,3 |
请详细描述bug
get传参{ keyWord:"", sortList: { sort: 'desc' }}
在Axios中 get url: ?keyWord=&sortList[sort]=desc
在alova中 get url: ?keyWord=&sortList=[object%20Object]
复现链接
No response
复现步骤
get请求传 json 键值对
期望的表现
No response
alova 版本
2.20.5
设备/浏览器/浏览器版本
No response
额外的说明
No response
The text was updated successfully, but these errors were encountered: