From e2729c6b21efea16b9fa7026a23d823c09f73908 Mon Sep 17 00:00:00 2001 From: duanxiaohai <1812246227@qq.com> Date: Mon, 2 Sep 2024 15:12:30 +0800 Subject: [PATCH] gx --- src/view/person/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/view/person/index.vue b/src/view/person/index.vue index 54403f6..b116229 100644 --- a/src/view/person/index.vue +++ b/src/view/person/index.vue @@ -945,8 +945,9 @@ const getData = (identNo) => { if (res.code === 200 && res.data) { const { ryjbxx, camera, rybqxx } = res.data; // 判断 ryjbxx 和 camera 是否存在 - baseInfo.value = ryjbxx || {}; // 如果 ryjbxx 未定义则赋值为空对象 - dataMyTag.camera = camera || {}; // 如果 camera 未定义则赋值为空对象 + baseInfo.value = ryjbxx || {}; + dataMyTag.camera = camera ?? false; + // console.log(dataMyTag.camera, camera); if (Array.isArray(dataMyTag.myTag)) { dataMyTag.myTag.forEach((item) => {