import { ref, watch, watchEffect } from "vue"; import type { PhotoRaw } from "./photos"; export type AccidentPhoto = { id: string; photoUrl: string; title: string; url: string; time: number; data: any; updateTime?: number; type?: string; sceneData: { meterPerPixel: number; measures: PhotoRaw["measures"]; fixPoints: PhotoRaw["fixPoints"]; basePoints: PhotoRaw["basePoints"]; baseLines: PhotoRaw["baseLines"]; }; }; export const types = ["概览照片", "中心照片", "细目照片", "方位照片"]; export const accidentPhotos = ref([]); watch( accidentPhotos, (val) => { console.error(accidentPhotos.value[1]); }, { deep: true, flush: "sync" } );