Commit 8a90870e authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix:商品上架查找店铺添加memberId字段

parent 38f3cb90
......@@ -388,7 +388,10 @@ const Products: React.FC<{}> = () => {
const onChangeUpShop = (values) => {
// 判断上架之前是否有店铺 有即可以上下架
if(judgeShopRef.current){
PublicApi.getTemplateShopFindShop({memberRoleId: JSON.parse(window.localStorage.getItem('auth')).memberRoleId}).then(res => {
PublicApi.getTemplateShopFindShop({
memberId: JSON.parse(window.localStorage.getItem('auth')).memberId,
memberRoleId: JSON.parse(window.localStorage.getItem('auth')).memberRoleId
}).then(res => {
if(res.data.id){
setShopId(res.data.id)
setCheckedValues(values)
......
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