From a0c55d0be1d6d6ce3fb9daa45c09b6ad00f19f5c Mon Sep 17 00:00:00 2001 From: admin <> Date: Thu, 18 Jul 2024 15:41:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=88=91=E7=9A=84-=E3=80=8B=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=BF=A1=E6=81=AF-=E3=80=8B=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Photo/index.vue | 5 +++-- src/pagesLogin/profile/baseinfo.vue | 2 +- src/pagesScenePhoto/index.vue | 14 ++++++-------- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/components/Photo/index.vue b/src/components/Photo/index.vue index 1e6b786..2d536e3 100644 --- a/src/components/Photo/index.vue +++ b/src/components/Photo/index.vue @@ -3,7 +3,7 @@ import { PictureApi } from "@/services"; +import { url } from "@/utils/data"; const props = defineProps<{ params: Object; }>(); let list: any = ref([]); const showImage = (index: number) => { uni.previewImage({ - urls: list.value.map((item: any) => item.url), // 图片列表 + urls: list.value.map((item: any) => item.url || `${url}/static/110/error.jpg`), // 图片列表 current: index, // 当前显示图片的索引 indicator: "default", // 图片指示器样式,默认为圆点 loop: true, diff --git a/src/pagesLogin/profile/baseinfo.vue b/src/pagesLogin/profile/baseinfo.vue index 402212c..306d364 100644 --- a/src/pagesLogin/profile/baseinfo.vue +++ b/src/pagesLogin/profile/baseinfo.vue @@ -1,7 +1,7 @@