chore: remove duplicated auth header
This commit is contained in:
@@ -282,10 +282,7 @@ export default {
|
|||||||
try {
|
try {
|
||||||
const response = await axios.get('/api/chat/get_file', {
|
const response = await axios.get('/api/chat/get_file', {
|
||||||
params: { filename },
|
params: { filename },
|
||||||
responseType: 'blob',
|
responseType: 'blob'
|
||||||
headers: {
|
|
||||||
'Authorization': 'Bearer ' + localStorage.getItem('token')
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const blobUrl = URL.createObjectURL(response.data);
|
const blobUrl = URL.createObjectURL(response.data);
|
||||||
@@ -433,8 +430,7 @@ export default {
|
|||||||
try {
|
try {
|
||||||
const response = await axios.post('/api/chat/post_file', formData, {
|
const response = await axios.post('/api/chat/post_file', formData, {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'multipart/form-data',
|
'Content-Type': 'multipart/form-data'
|
||||||
'Authorization': 'Bearer ' + localStorage.getItem('token')
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -460,8 +456,7 @@ export default {
|
|||||||
try {
|
try {
|
||||||
const response = await axios.post('/api/chat/post_image', formData, {
|
const response = await axios.post('/api/chat/post_image', formData, {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'multipart/form-data',
|
'Content-Type': 'multipart/form-data'
|
||||||
'Authorization': 'Bearer ' + localStorage.getItem('token')
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user