写文章时 上传本地图片

This commit is contained in:
huangge1199 2024-08-29 10:04:09 +08:00
parent 718834510c
commit b3c36e27cf
2 changed files with 5 additions and 1 deletions

View File

@ -47,6 +47,9 @@ export function upload(data) {
return request({ return request({
url: '/resource/oss/upload', url: '/resource/oss/upload',
method: 'post', method: 'post',
data: data data: data,
headers: {
'Content-Type': 'multipart/form-data'
}
}); });
} }

View File

@ -16,6 +16,7 @@
| ul ol table hr | ul ol table hr
| link image code | emoji" | link image code | emoji"
height="650px" height="650px"
:disabled-menus="[]"
@upload-image="handleUploadImage" @upload-image="handleUploadImage"
></v-md-editor> ></v-md-editor>
</el-form-item> </el-form-item>