api.tsx
import http from "./http"
export default {
common: {
login(username: string, password: string) {
return http.post("/common/login", {
username,
password,
})
},
}
where http
is the axios configured encapsulated export.
then you can"t take parameters with you when you write an axios request in saga. How do I write
?