|
|
@@ -29,11 +29,6 @@ class FuncItem extends Component {
|
|
|
|
|
|
componentDidMount () {
|
|
|
let { funcObj, supAble, supValue } = this.props
|
|
|
- if (supValue) {
|
|
|
- this.setState({
|
|
|
- supState: supValue,
|
|
|
- })
|
|
|
- }
|
|
|
|
|
|
if (supAble && !isObjEmpty(funcObj.countUrl)) {
|
|
|
fetchGet(funcObj.countUrl).then(response => {
|
|
|
@@ -54,6 +49,12 @@ class FuncItem extends Component {
|
|
|
supState: 0,
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+ if (supValue) {
|
|
|
+ this.setState({
|
|
|
+ supState: supValue,
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
shouldComponentUpdate (nextProps, nextState, nextContext) {
|