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 @@