axios.post(urlString,
{ data: data
},
{
headers: {
'token': 'Bearer ',
"Cookie" : 'sessionId=' + sessionId + '; recId=' + recId
}
}
)
.then(res => fn)
.catch(e => fn)
axios.get(urlString,
{
headers: {
'token': 'Bearer ' ,
"Cookie" : 'sessionId=' + sessionId + '; recId=' + recId,
},
params: {
param1: string,
param2: string
},
}
)
.then(res => fn)
.catch(e => fn)