weiximei 5 lat temu
rodzic
commit
baba3d916c

+ 1
- 1
src/pages/activity/SignList.jsx Wyświetl plik

@@ -44,7 +44,7 @@ const columns = [
44 44
     render: (x, row) => <><span>{`${moment(row.createDate).format('YYYY-MM-DD')}`}</span></>,
45 45
   },
46 46
   {
47
-    title: '推广人',
47
+    title: '引流人',
48 48
     dataIndex: 'sharePersonName',
49 49
     key: 'sharePersonName',
50 50
     align: 'center',

+ 4
- 6
src/pages/building/list/add/components/base.jsx Wyświetl plik

@@ -49,15 +49,13 @@ function AddBuilding(props) {
49 49
   const [fileUploadDisabled, setFileUploadDisabled] = useState(false)
50 50
 
51 51
   // console.log('props.building: ', props.building)
52
-  if (props.building.buildingId !== undefined) {
53
-    const { buildingId } = props.building
52
+  const { buildingId } = props.building
54 53
      // eslint-disable-next-line react-hooks/rules-of-hooks
55
-     useEffect(() => {
56
-      if (buildingId !== '') {
54
+  useEffect(() => {
55
+      if (buildingId && buildingId !== '') {
57 56
         getById(buildingId)
58 57
       }
59
-    }, [])
60
-  }
58
+  }, [buildingId])
61 59
 
62 60
    // 获取详情信息
63 61
    function getById(currentId) {