写文章时 上传本地图片

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({
url: '/resource/oss/upload',
method: 'post',
data: data
data: data,
headers: {
'Content-Type': 'multipart/form-data'
}
});
}

View File

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