Skip to content

Commit

Permalink
富文本图片上传bug
Browse files Browse the repository at this point in the history
  • Loading branch information
smallsnail-wh committed Feb 19, 2019
1 parent a7fd34a commit 49b9507
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
// 获取光标所在位置
let length = quill.getSelection().index;
// 插入图片 res.info为服务器返回的图片地址
quill.insertEmbed(length, 'image', res.url);
quill.insertEmbed(length, 'image', res.data.url);
// 调整光标到最后
//quill.setSelection(length + 1)
},
Expand Down

0 comments on commit 49b9507

Please sign in to comment.