From 0d23da5814e16f2031404d9a763bb0c3a599e234 Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Fri, 13 Sep 2024 21:06:35 +0800
Subject: [PATCH] fix: 工作台督办初始值问题
---
gz-customerSystem/src/components/personCard/index.jsx | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gz-customerSystem/src/components/personCard/index.jsx b/gz-customerSystem/src/components/personCard/index.jsx
index 90394f2..04a9c83 100644
--- a/gz-customerSystem/src/components/personCard/index.jsx
+++ b/gz-customerSystem/src/components/personCard/index.jsx
@@ -32,13 +32,13 @@
}
let isAgent = false
let isAgentFor = false
- const typeList = data.map(item => {
+ const typeList = data?.map(item => {
return item.perType
})//获取有多少申请人和被申请人
- if (typeList.indexOf('15_020008-1') != -1) {
+ if (typeList?.indexOf('15_020008-1') != -1) {
isAgent = true
}
- if (typeList.indexOf('15_020008-2') != -1) {
+ if (typeList?.indexOf('15_020008-2') != -1) {
isAgentFor = true
}
@@ -51,7 +51,7 @@
return (
<Fragment>
<Row gutter={[24, 16]}>
- {data.map((x, t) => (
+ {data?.map((x, t) => (
<Col span={7} key={t}>
<div className="public-personCard" style={{ cursor: 'pointer' }}>
<div
--
Gitblit v1.8.0