Skip to content

Commit f78f44e

Browse files
authored
Merge pull request bufanyun#115 from qiuyier/bugfix/issue-109
fix(src/api/base/index.ts): 富文本无法上传图片
2 parents ea7cc97 + 93395df commit f78f44e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/src/api/base/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export function UploadImage(params) {
1616
const headers = {
1717
Authorization: useUserStore.token,
1818
uploadType: 'default',
19+
'Content-Type': 'multipart/form-data',
1920
};
2021
return http.request({
2122
url: '/upload/file',

0 commit comments

Comments
 (0)