Commit 216544fd authored by 武广's avatar 武广

Merge branch 'feature/goods-list' of git.quantgroup.cn:ui/merchant-manage-ui...

Merge branch 'feature/goods-list' of git.quantgroup.cn:ui/merchant-manage-ui into feature/20230327_public_takeaway
parents a085f0f9 08804872
...@@ -28,6 +28,8 @@ const GoodsGroup = options => { ...@@ -28,6 +28,8 @@ const GoodsGroup = options => {
})), })),
); );
options.changeShop(+res.data[0].id); options.changeShop(+res.data[0].id);
} else {
options.changeShop(0);
} }
}; };
...@@ -44,6 +46,9 @@ const GoodsGroup = options => { ...@@ -44,6 +46,9 @@ const GoodsGroup = options => {
})); }));
setTags(arr); setTags(arr);
setSelected(res.data[0].rackId); setSelected(res.data[0].rackId);
} else {
setTags([]);
setSelected(0);
} }
}; };
......
...@@ -148,6 +148,8 @@ const Takeaway = options => { ...@@ -148,6 +148,8 @@ const Takeaway = options => {
useEffect(() => { useEffect(() => {
if (groupId) { if (groupId) {
getDataList(); getDataList();
} else {
setTableData([]);
} }
}, [groupId, options.refresh]); }, [groupId, options.refresh]);
......
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