fix 修复 富文本图片路径错误问题
(cherry picked from commit cf4b49ca3b259fb61585b39ae0ab014b767d90fd)
This commit is contained in:
parent
ba018d0d6c
commit
05ca59a525
@ -176,7 +176,7 @@ export default {
|
||||
// 获取光标所在位置
|
||||
let length = quill.getSelection().index;
|
||||
// 插入图片 res.url为服务器返回的图片地址
|
||||
quill.insertEmbed(length, "image", process.env.VUE_APP_BASE_API + res.data.fileName);
|
||||
quill.insertEmbed(length, "image", res.data.url);
|
||||
// 调整光标到最后
|
||||
quill.setSelection(length + 1);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user