Parcourir la source

修改富文本图片路径

Wang-Xiao-Ran il y a 1 an
Parent
commit
f3c0e87f2f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 {