Kaynağa Gözat

uas手机版
列表加载逻辑优化

RaoMeng 5 yıl önce
ebeveyn
işleme
59be732165

+ 2 - 8
uas-office-web/uas-mobile/src/components/common/func/FuncItem.jsx

@@ -49,12 +49,6 @@ class FuncItem extends Component {
         supState: 0,
       })
     }
-
-    if (supValue) {
-      this.setState({
-        supState: supValue,
-      })
-    }
   }
 
   shouldComponentUpdate (nextProps, nextState, nextContext) {
@@ -109,13 +103,13 @@ class FuncItem extends Component {
             style={funcTextStyle}
           >{funcObj.name}</span>
           {
-            ((supAble || supValue) && supState) ?
+            ((supAble && supState) || supValue) ?
               <sup
                 className='func-func-sup'
                 style={{
                   // paddingTop: getOS() === 'Android' ? '3px' : '0px',
                 }}
-              >{supState}</sup> : ''
+              >{supValue || supState}</sup> : ''
           }
         </div>
         {