瀏覽代碼

多图上传组件移除多余的api地址

RuoYi 3 年之前
父節點
當前提交
5d6f134609
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ruoyi-ui/src/components/ImageUpload/index.vue

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

@@ -184,7 +184,7 @@ export default {
       let strs = "";
       separator = separator || ",";
       for (let i in list) {
-        strs += list[i].url + separator;
+        strs += list[i].url.replace(this.baseUrl, "") + separator;
       }
       return strs != '' ? strs.substr(0, strs.length - 1) : '';
     }