|
@@ -242,13 +242,13 @@
|
|
// OSS要求, file放到最后
|
|
// OSS要求, file放到最后
|
|
FormDataForAl.append('file', file);
|
|
FormDataForAl.append('file', file);
|
|
|
|
|
|
- axios.post(multipartParams.uploadUrl, FormDataForAl).then(alRes => {
|
|
|
|
|
|
+ axios.post(multipartParams.url, FormDataForAl).then(alRes => {
|
|
if (alRes.status === 200) {
|
|
if (alRes.status === 200) {
|
|
let quill = this.$refs[this.quillEditorRef].quill;
|
|
let quill = this.$refs[this.quillEditorRef].quill;
|
|
// 获取光标所在位置
|
|
// 获取光标所在位置
|
|
let length = quill.getSelection().index;
|
|
let length = quill.getSelection().index;
|
|
// 插入图片 res.url为服务器返回的图片地址
|
|
// 插入图片 res.url为服务器返回的图片地址
|
|
- quill.insertEmbed(length, 'image', `${multipartParams.downloadUrl}/${multipartParams.key}`);
|
|
|
|
|
|
+ quill.insertEmbed(length, 'image', `${multipartParams.url}/${multipartParams.key}`);
|
|
|
|
|
|
|
|
|
|
// 调整光标到最后
|
|
// 调整光标到最后
|