Commit 08804872 authored by 武广's avatar 武广

fix: 修改切换门店分组不刷新的问题

parent dacc0956
......@@ -28,6 +28,8 @@ const GoodsGroup = options => {
})),
);
options.changeShop(+res.data[0].id);
} else {
options.changeShop(0);
}
};
......@@ -44,6 +46,9 @@ const GoodsGroup = options => {
}));
setTags(arr);
setSelected(res.data[0].rackId);
} else {
setTags([]);
setSelected(0);
}
};
......
......@@ -148,6 +148,8 @@ const Takeaway = options => {
useEffect(() => {
if (groupId) {
getDataList();
} else {
setTableData([]);
}
}, [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