fix: upload file
This commit is contained in:
parent
af54914bbb
commit
906c6066e3
1 changed files with 3 additions and 3 deletions
|
|
@ -145,9 +145,9 @@ async function uploadProfile(code: string) {
|
||||||
async function uploadFileDoc(uploadUrl: string, file: any) {
|
async function uploadFileDoc(uploadUrl: string, file: any) {
|
||||||
try {
|
try {
|
||||||
await axios.put(uploadUrl, file, {
|
await axios.put(uploadUrl, file, {
|
||||||
headers: {
|
// headers: {
|
||||||
"Content-Type": file.type,
|
// "Content-Type": file.type,
|
||||||
},
|
// },
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue