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) => {