ruoyi-ui/src/components/Editor/index.vue
@@ -176,11 +176,11 @@ // 获取光标所在位置 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 { this.$message.error("图片插入失败"); this.$message.error(res.msg); } }, handleUploadError() {