feat: 修改商品上架字段
This commit is contained in:
@@ -113,7 +113,7 @@ function handleSwitchChange(data: any) {
|
|||||||
let obj = {
|
let obj = {
|
||||||
type: data.isGrounding ? 'sku' : 'product',
|
type: data.isGrounding ? 'sku' : 'product',
|
||||||
id: data.id,
|
id: data.id,
|
||||||
isSale: data.status
|
isSale: data.isSale
|
||||||
}
|
}
|
||||||
UserAPI.onOff(obj);
|
UserAPI.onOff(obj);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ const contentConfig: IContentConfig<UserPageQuery> = {
|
|||||||
{
|
{
|
||||||
label: "上架",
|
label: "上架",
|
||||||
align: "center",
|
align: "center",
|
||||||
prop: "status",
|
prop: "isSale",
|
||||||
templet: "custom",
|
templet: "custom",
|
||||||
slotName: "shangjia",
|
slotName: "shangjia",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user