edit page added
This commit is contained in:
parent
3c7d62e2fc
commit
0676a36c34
@ -44,6 +44,7 @@ const AirwaysBill = () => {
|
|||||||
"Authorization": `Bearer ${token}`
|
"Authorization": `Bearer ${token}`
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(res.data);
|
console.log(res.data);
|
||||||
setData(res.data.Stores)
|
setData(res.data.Stores)
|
||||||
}
|
}
|
||||||
@ -69,10 +70,10 @@ const AirwaysBill = () => {
|
|||||||
|
|
||||||
// console.log(...formData)
|
// console.log(...formData)
|
||||||
|
|
||||||
const res = await axios.post('/api/airways/upload', { file: formData }, {
|
const res = await axios.post('/api/airways/upload', formData, {
|
||||||
headers: {
|
headers: {
|
||||||
"Access-Control-Allow-Origin": "*",
|
|
||||||
'Content-Type': 'multipart/form-data',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
"Authorization": `Bearer ${token}`
|
"Authorization": `Bearer ${token}`
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
|
Loading…
Reference in New Issue
Block a user