This commit is contained in:
@@ -241,7 +241,7 @@ export default {
|
||||
try {
|
||||
const formData = JSON.parse(JSON.stringify(this.form))
|
||||
if (this.isEdit) {
|
||||
await productApi.updateProduct(formData)
|
||||
await productApi.updateProduct(formData.productId, formData)
|
||||
uni.showToast({ title: '更新成功', icon: 'success' })
|
||||
} else {
|
||||
await productApi.createProduct(formData)
|
||||
|
||||
Reference in New Issue
Block a user