diff --git a/src/views/product/index.vue b/src/views/product/index.vue index 083a7b0..464bc59 100644 --- a/src/views/product/index.vue +++ b/src/views/product/index.vue @@ -113,7 +113,7 @@ function handleSwitchChange(data: any) { let obj = { type: data.isGrounding ? 'sku' : 'product', id: data.id, - isSale: data.status + isSale: data.isSale } UserAPI.onOff(obj); } diff --git a/src/views/product/indexconfig/content.ts b/src/views/product/indexconfig/content.ts index 2131e43..508aacd 100644 --- a/src/views/product/indexconfig/content.ts +++ b/src/views/product/indexconfig/content.ts @@ -82,7 +82,7 @@ const contentConfig: IContentConfig = { { label: "上架", align: "center", - prop: "status", + prop: "isSale", templet: "custom", slotName: "shangjia", },