Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs 如何在axios调用中传递查询字符串/参数?_Reactjs_Axios - Fatal编程技术网

Reactjs 如何在axios调用中传递查询字符串/参数?

Reactjs 如何在axios调用中传递查询字符串/参数?,reactjs,axios,Reactjs,Axios,使用一个全局axios函数- refreshToken: { method: 'post', baseURL: `${testDomain}/country/oauth/refresh-token/`, withCredentials: false }, 通过其他文件访问- request.post('refreshToken') 相关的网络调用正在发生,但当尝试通过params字段发送查询字符串时,出现

使用一个全局axios函数-

refreshToken: {
            method: 'post',
            baseURL: `${testDomain}/country/oauth/refresh-token/`,
            withCredentials: false
        },
通过其他文件访问-

request.post('refreshToken')
相关的网络调用正在发生,但当尝试通过params字段发送查询字符串时,出现了不需要的密钥

https://1234ws.amazonaws.com/country/oauth/refresh-token/?refreshToken=breville-dev:7qwScHznsf1_qD6ce6Z2bZtOElCGZApZNpm0OZMpGP8
?refreshToken=不应出现

URL应该是-

https://1234ws.amazonaws.com/country/oauth/refresh-token/breville-dev:7qwScHznsf1_qD6ce6Z2bZtOElCGZApZNpm0OZMpGP8
提前谢谢