From 2abaf1a68cc38303724d7aa74d2d3ed81af6466f Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期日, 31 三月 2024 22:09:30 +0800 Subject: [PATCH] bug修改 --- src/components/filePictrue/index.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/filePictrue/index.vue b/src/components/filePictrue/index.vue index 469f142..7ef721d 100644 --- a/src/components/filePictrue/index.vue +++ b/src/components/filePictrue/index.vue @@ -35,8 +35,7 @@ </div> </template> <script> -import { parseTime, FILE_ORIGINAL_URL } from "@/utils/index"; -import { replace } from "core-js/fn/symbol"; +import { parseTime, FILE_ORIGINAL_PATH } from "@/utils/index"; export default { data() { return { @@ -44,7 +43,9 @@ }; }, props: ["filesPictureVo", "mycode"], + created() { + this.imgSource = [] const { filesPictureVo: { imageResources: imgList }, } = this; @@ -58,8 +59,7 @@ urls.forEach((o) => { o = o.replace("[", "").replace("]", ""); if (o !== '') { - o = o.replace("http://111.1.140.92:28081/sccg/API/img?fileUrl=","") - item.url.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${o}`); + item.url.push(FILE_ORIGINAL_PATH + o); } }); } @@ -99,7 +99,7 @@ item.url = []; urls.forEach((o) => { o = o.replace("[", "").replace("]", ""); - item.url.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${o}`); + item.url.push(FILE_ORIGINAL_PATH + o); }); } } else { -- Gitblit v1.8.0