|
|
@@ -31,15 +31,15 @@ class FuncItem extends Component {
|
|
|
fetchGet(funcObj.countUrl).then(response => {
|
|
|
funcObj.sup = response.data
|
|
|
this.props.onFuncDataChange && this.props.onFuncDataChange(funcObj)
|
|
|
- if (funcObj.funcType === FUNC_TYPE_DOC) {
|
|
|
- GlobalEvent.emit(EVENT_DOC_FUNC_COUNT, funcObj)
|
|
|
- }
|
|
|
+ // if (funcObj.funcType === FUNC_TYPE_DOC) {
|
|
|
+ // GlobalEvent.emit(EVENT_DOC_FUNC_COUNT, funcObj)
|
|
|
+ // }
|
|
|
}).catch(error => {
|
|
|
funcObj.sup = 0
|
|
|
this.props.onFuncDataChange && this.props.onFuncDataChange(funcObj)
|
|
|
- if (funcObj.funcType === FUNC_TYPE_DOC) {
|
|
|
- GlobalEvent.emit(EVENT_DOC_FUNC_COUNT, funcObj)
|
|
|
- }
|
|
|
+ // if (funcObj.funcType === FUNC_TYPE_DOC) {
|
|
|
+ // GlobalEvent.emit(EVENT_DOC_FUNC_COUNT, funcObj)
|
|
|
+ // }
|
|
|
})
|
|
|
}
|
|
|
}
|