zlisen 3 years ago
parent
commit
cba8c753e4
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      src/pages/Live/video/List/index.jsx
  2. 2
    2
      src/pages/building/Edit/Apartment/Form.jsx

+ 1
- 1
src/pages/Live/video/List/index.jsx View File

@@ -39,7 +39,7 @@ const Video = props => {
39 39
 
40 40
 
41 41
   const onPublish = row => {
42
-    const buidingStatus = row.status === 1 ? 2 : 1;
42
+   
43 43
     request({ ...apis.video.publish, urlData: { id: row.videoId } })
44 44
       .then(() => {
45 45
         message.success( '操作成功');

+ 2
- 2
src/pages/building/Edit/Apartment/Form.jsx View File

@@ -121,7 +121,7 @@ const AMForm = props => {
121 121
         })(
122 122
           <Select placeholder="销售状态">
123 123
             {saleType.map((item, _) => (
124
-              <Option value={item.id}>{item.name}</Option>
124
+              <Option value={item.id} key={item.id}>{item.name}</Option>
125 125
             ))}
126 126
           </Select>,
127 127
         )}
@@ -137,7 +137,7 @@ const AMForm = props => {
137 137
         })(
138 138
           <Select placeholder="户型">
139 139
             {houseType.map((item, _) => (
140
-              <Option value={item.id}>{item.name}</Option>
140
+              <Option value={item.id} key={item.id}>{item.name}</Option>
141 141
             ))}
142 142
           </Select>,
143 143
         )}