Explorar el Código

update 富文本接口返回值修正

疯狂的狮子li hace 3 años
padre
commit
821f54f1ab
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ruoyi-ui/src/components/Editor/index.vue

+ 1 - 1
ruoyi-ui/src/components/Editor/index.vue

@@ -166,7 +166,7 @@ export default {
         // 获取光标所在位置
         let length = quill.getSelection().index;
         // 插入图片  res.url为服务器返回的图片地址
-        quill.insertEmbed(length, "image", process.env.VUE_APP_BASE_API + res.fileName);
+        quill.insertEmbed(length, "image", process.env.VUE_APP_BASE_API + res.data.fileName);
         // 调整光标到最后
         quill.setSelection(length + 1);
       } else {