|
|
@@ -33,7 +33,6 @@ const formatDateTime = (time: string) => {
|
|
|
|
|
|
const useCameraDetailStore = defineStore('cameraDetail', () => {
|
|
|
const cameraId = useRouteQuery('cameraId', '', { transform: (str) => Number(str) });
|
|
|
- const isDisplayFence = ref<boolean>(false);
|
|
|
|
|
|
const detail = ref<CameraDetailServer | null>(null);
|
|
|
|
|
|
@@ -48,14 +47,13 @@ const useCameraDetailStore = defineStore('cameraDetail', () => {
|
|
|
resolution: newDetail.resolution || VideoResolution.HIGH_RESOLUTION,
|
|
|
period: newDetail.nvrPeriod || 30,
|
|
|
};
|
|
|
- isDisplayFence.value = newDetail.isDisplayFence === FenceDisplayStatus.enabled ? true : false;
|
|
|
};
|
|
|
|
|
|
const clear = () => {
|
|
|
detail.value = null;
|
|
|
params.value = { ...defaultParams };
|
|
|
};
|
|
|
- return { detail, setDetail, cameraId, params, clear, isDisplayFence };
|
|
|
+ return { detail, setDetail, cameraId, params, clear };
|
|
|
});
|
|
|
|
|
|
export default useCameraDetailStore;
|