Authored by 孙凯

修改 无数据bug review by chenlin

... ... @@ -127,6 +127,7 @@ export default class Product extends Component {
globalProduct,
currentTab,
} = this.props.data;
if ((currentTab == 'common' && commonProduct.get('productList').size == 0)
|| (currentTab == 'global' && globalProduct.get('productList').size == 0)) {
return (
... ... @@ -211,8 +212,9 @@ export default class Product extends Component {
let dataArray = [];
let isLoading = false;
let showList = (commonProduct.get('productList').size && !commonProduct.get('isFetching')) || (globalProduct.get('productList').size && !commonProduct.get('isFetching'));
let showEmpty = commonProduct.get('showEmpty') && globalProduct.get('showEmpty');
let showList = (commonProduct.get('productList').size && !commonProduct.get('isFetching')) || (globalProduct.get('productList').size && !globalProduct.get('isFetching'));
let showEmpty = (currentTab == 'common' && commonProduct.get('showEmpty')) || (currentTab == 'global' && globalProduct.get('showEmpty'));
let categoryId = 0;
if (currentTab == 'common') {
let {isFetching, selectedProductList, categoryList, selectedCategoryIndex, isDeleting} = commonProduct;
... ...