【发布时间】:2021-12-28 14:16:25
【问题描述】:
在我的 sagas 中,我将用户凭据发送到后端
const request = client.post('api/JwtAuth/GenerateToken', {UserName: action.username, Password: action.password})
console.log(request)
客户端看起来像这样
从“axios”导入axios
const client = axios.create({
baseURL: 'https://localhost:5001/',
timeout: 600000000000,
headers: {
ContentType: 'application/json'
}
})
export default client
【问题讨论】:
标签: javascript reactjs redux-saga