mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-01-23 02:40:23 +08:00
fix(src/api/base/index.ts): 富文本无法上传图片
富文本调用上传接口时,content-type 为 application/json导致无法上传图片,修改上传接口,指定 content-type 为 multipart/form-data解决问题 Closes #109
This commit is contained in:
parent
ea7cc97ed4
commit
93395df7fa
@ -16,6 +16,7 @@ export function UploadImage(params) {
|
||||
const headers = {
|
||||
Authorization: useUserStore.token,
|
||||
uploadType: 'default',
|
||||
'Content-Type': 'multipart/form-data',
|
||||
};
|
||||
return http.request({
|
||||
url: '/upload/file',
|
||||
|
Loading…
Reference in New Issue
Block a user