Browse Source

修复bug

魏熙美 5 years ago
parent
commit
158e4b5d10
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/components/SelectButton/BuildSelect.jsx

+ 1
- 0
src/components/SelectButton/BuildSelect.jsx View File

@@ -38,6 +38,7 @@ const BuildingSelect = (props) => {
38 38
         // 默认选中第一个
39 39
         if ((!preProps || !preProps.one) && props.one === 'true') {
40 40
           setValue(data.records[0].buildingId)
41
+          props.onChange(data.records[0].buildingId)
41 42
         }
42 43
     })
43 44
   }