浏览代码

修改 路径 url

wangguoyu 5 年之前
父节点
当前提交
bf07488a1f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/management/QuillEditor.vue

+ 2 - 2
src/components/management/QuillEditor.vue

@@ -242,13 +242,13 @@
                         // OSS要求, file放到最后
                         FormDataForAl.append('file', file);
 
-                        axios.post(multipartParams.uploadUrl, FormDataForAl).then(alRes => {
+                        axios.post(multipartParams.url, FormDataForAl).then(alRes => {
                             if (alRes.status === 200) {
                                 let quill = this.$refs[this.quillEditorRef].quill;
                                 // 获取光标所在位置
                                 let length = quill.getSelection().index;
                                 // 插入图片  res.url为服务器返回的图片地址
-                                quill.insertEmbed(length, 'image', `${multipartParams.downloadUrl}/${multipartParams.key}`);
+                                quill.insertEmbed(length, 'image', `${multipartParams.url}/${multipartParams.key}`);
 
 
                                 // 调整光标到最后