Commit 76d65781 authored by GuanHua's avatar GuanHua

fix: 商品收藏管理分页问题修复

parent d3b0399d
......@@ -71,7 +71,7 @@
"@linkseeks/design-core": "^1.0.0",
"@linkseeks/design-react": "^1.0.2",
"@linkseeks/design-react-web": "^1.0.0",
"@linkseeks/design-ui": "^1.0.9",
"@linkseeks/design-ui": "^1.0.10",
"@linkseeks/god": "^1.0.0",
"@linkseeks/umi-plugin-yapi": "1.0.1",
"@turf/turf": "^6.4.0",
......
......@@ -33,9 +33,11 @@ interface CommodityDrawerProps {
}
const _returnCategoryList = (list: any, obj: any) => {
obj.name && list.unshift(obj.name);
if (obj.category) {
_returnCategoryList(list, obj.category);
if (obj) {
obj.name && list.unshift(obj.name);
if (obj.category) {
_returnCategoryList(list, obj.category);
}
}
}
......
......@@ -56,7 +56,7 @@ const CommoditySchema: ISchema = {
style: { width: '174px' },
searchValue: null,
dataoption: [],
fieldNames: { label: 'title', value: 'id', children: 'children' },
// fieldNames: { label: 'title', value: 'id', children: 'children' },
},
},
customerCategoryId: {
......
......@@ -22,7 +22,7 @@ const Commodity: React.FC = () => {
useEffect(() => {
getShopCommodityCollectList()
}, [])
}, [current])
/**
* 获取收藏的商品列表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment