This commit is contained in:
yixu
2025-09-14 23:15:14 +08:00
parent 58729f6b28
commit 8af9bf949f
2 changed files with 8 additions and 8 deletions

View File

@@ -12,13 +12,6 @@ const props = defineProps({
show: false
})
watch(() => props.show, async (newVal) => {
if (!newVal) {
return
}
fetchImages();
})
const emit = defineEmits(['go-photo-square', 'update:show']);
const router = useRouter();
const goBack = () => {
@@ -65,6 +58,13 @@ const fetchImages = async () => {
}
}
watch(() => props.show, async (newVal) => {
if (!newVal) {
return
}
fetchImages();
}, { immediate: true })
// 图片数据
const images = ref([]);