Skip to content

useRequest 和 useRequestCallback 不支持请求的时候,传递一些axios的配置项吗 #113

Description

比如有一个请求
getData('post', {
params: {} // 请求地址?后面拼接的参数
data: {} // body中的参数
})
这两中参数都要传过去,useRequest 和 useRequestCallback 就没办法区别两种类型的参数,会全部拼接到?后面

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions