f
This commit is contained in:
0
src/components/VehicleReportFallback.vue
Normal file
0
src/components/VehicleReportFallback.vue
Normal file
@@ -51,10 +51,13 @@ const maskedName = computed(() => {
|
|||||||
return name.length > 1 ? name[0] + '*'.repeat(name.length - 1) : '*';
|
return name.length > 1 ? name[0] + '*'.repeat(name.length - 1) : '*';
|
||||||
});
|
});
|
||||||
|
|
||||||
// status: 0 一致, -1 不一致, -2 非法姓名, -4 无记录
|
// status: 0 一致, -1 不一致, -2 非法姓名, -4 无记录(接口多为 result.status)
|
||||||
const status = computed(() => {
|
const status = computed(() => {
|
||||||
const s = props.data?.status;
|
const d = props.data;
|
||||||
if (s === 0 || s === -1 || s === -2 || s === -4) return s;
|
const direct = d?.status;
|
||||||
|
if (direct === 0 || direct === -1 || direct === -2 || direct === -4) return direct;
|
||||||
|
const nested = d?.result?.status;
|
||||||
|
if (nested === 0 || nested === -1 || nested === -2 || nested === -4) return nested;
|
||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user