写文章时 上传本地图片
This commit is contained in:
parent
718834510c
commit
b3c36e27cf
@ -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'
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user