diff --git a/src/views/product/index.vue b/src/views/product/index.vue index 0a68625..3e1999a 100644 --- a/src/views/product/index.vue +++ b/src/views/product/index.vue @@ -245,7 +245,7 @@ function handleSwitchChange(data: any) { // 售罄 function handleSwitchChangeTwo(data: any) { let obj = { - type: data.type == "sku" ? "sku" : "product", + type: data.specInfo ? "sku" : "product", id: data.id, isSoldOut: data.isSoldStock, };