This commit is contained in:
@@ -282,8 +282,7 @@ export default {
|
||||
async toggleStatus(item) {
|
||||
const newStatus = item.status === 1 ? 0 : 1
|
||||
try {
|
||||
await productApi.updateProduct({
|
||||
productId: item.productId,
|
||||
await productApi.updateProduct(item.productId, {
|
||||
status: newStatus
|
||||
})
|
||||
uni.showToast({ title: newStatus === 1 ? '已上架' : '已下架', icon: 'success' })
|
||||
|
||||
Reference in New Issue
Block a user