zhanghua
2024-03-31 2abaf1a68cc38303724d7aa74d2d3ed81af6466f
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 {