Answer the question
In order to leave comments, you need to log in
Why the error Arguments expected: 3, received: 1.?
how to fix?
const data = {
method: 'GET',
url: '/code',
params: { phone },
};
test( { method = 'GET', url = '', headers, body, params }){
const req = {
method,
url,
data: body,
params,
headers
};
}
const res = test(data);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question