fix: 修复下架按钮API参数位置
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-04-01 15:11:02 +00:00
parent 826973f42a
commit 08f440f7c8

View File

@@ -282,8 +282,7 @@ export default {
async toggleStatus(item) { async toggleStatus(item) {
const newStatus = item.status === 1 ? 0 : 1 const newStatus = item.status === 1 ? 0 : 1
try { try {
await productApi.updateProduct({ await productApi.updateProduct(item.productId, {
productId: item.productId,
status: newStatus status: newStatus
}) })
uni.showToast({ title: newStatus === 1 ? '已上架' : '已下架', icon: 'success' }) uni.showToast({ title: newStatus === 1 ? '已上架' : '已下架', icon: 'success' })