fix(camera-card): type error
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { NdmDecoderDiagInfo } from '@/apis/domains';
|
|
||||||
import type { NdmCameraResultVO } from '@/apis/models';
|
import type { NdmCameraResultVO } from '@/apis/models';
|
||||||
import { useUserStore } from '@/stores/user';
|
import { useUserStore } from '@/stores/user';
|
||||||
import { destr } from 'destr';
|
import { destr } from 'destr';
|
||||||
@@ -19,7 +18,7 @@ const userStore = useUserStore();
|
|||||||
const { stationCode, ndmCamera } = toRefs(props);
|
const { stationCode, ndmCamera } = toRefs(props);
|
||||||
|
|
||||||
const lastDiagInfo = computed(() => {
|
const lastDiagInfo = computed(() => {
|
||||||
const result = destr<NdmDecoderDiagInfo>(ndmCamera.value.lastDiagInfo);
|
const result = destr<any>(ndmCamera.value.lastDiagInfo);
|
||||||
if (!result) return null;
|
if (!result) return null;
|
||||||
if (typeof result !== 'object') return null;
|
if (typeof result !== 'object') return null;
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user