Explorar o código

修改富文本图片路径

Wang-Xiao-Ran hai 1 ano
pai
achega
f3c0e87f2f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/Editor/index.vue

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

@@ -196,7 +196,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", res.url);
         // 调整光标到最后
         quill.setSelection(length + 1);
       } else {