Commit 76d65781 authored by GuanHua's avatar GuanHua

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

parent d3b0399d
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
"@linkseeks/design-core": "^1.0.0", "@linkseeks/design-core": "^1.0.0",
"@linkseeks/design-react": "^1.0.2", "@linkseeks/design-react": "^1.0.2",
"@linkseeks/design-react-web": "^1.0.0", "@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/god": "^1.0.0",
"@linkseeks/umi-plugin-yapi": "1.0.1", "@linkseeks/umi-plugin-yapi": "1.0.1",
"@turf/turf": "^6.4.0", "@turf/turf": "^6.4.0",
......
...@@ -33,10 +33,12 @@ interface CommodityDrawerProps { ...@@ -33,10 +33,12 @@ interface CommodityDrawerProps {
} }
const _returnCategoryList = (list: any, obj: any) => { const _returnCategoryList = (list: any, obj: any) => {
if (obj) {
obj.name && list.unshift(obj.name); obj.name && list.unshift(obj.name);
if (obj.category) { if (obj.category) {
_returnCategoryList(list, obj.category); _returnCategoryList(list, obj.category);
} }
}
} }
const CommodityDrawer: React.FC<CommodityDrawerProps> = (props: CommodityDrawerProps) => { const CommodityDrawer: React.FC<CommodityDrawerProps> = (props: CommodityDrawerProps) => {
......
...@@ -56,7 +56,7 @@ const CommoditySchema: ISchema = { ...@@ -56,7 +56,7 @@ const CommoditySchema: ISchema = {
style: { width: '174px' }, style: { width: '174px' },
searchValue: null, searchValue: null,
dataoption: [], dataoption: [],
fieldNames: { label: 'title', value: 'id', children: 'children' }, // fieldNames: { label: 'title', value: 'id', children: 'children' },
}, },
}, },
customerCategoryId: { customerCategoryId: {
......
...@@ -22,7 +22,7 @@ const Commodity: React.FC = () => { ...@@ -22,7 +22,7 @@ const Commodity: React.FC = () => {
useEffect(() => { useEffect(() => {
getShopCommodityCollectList() 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