Skip to content

Commit

Permalink
correct upload img api url
Browse files Browse the repository at this point in the history
  • Loading branch information
mryanshenghong committed Jun 24, 2020
1 parent fdd33ce commit 2ffd641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const uploadImg = (imgFile: any, token: string) => {
const fordata = new FormData()
fordata.append('data', imgFile)
axios
.post(`${process.env.VUE_APP_URL}/api/myWeb/uploadImg`, fordata, {
.post(`${process.env.VUE_APP_URL}/myWeb/uploadImg`, fordata, {
headers: { authorization: 'Bearer ' + token, 'Content-Type': 'multipart/form-data' },
})
.then((res) => {
Expand Down

0 comments on commit 2ffd641

Please sign in to comment.