|
@@ -194,7 +194,7 @@ export default {
|
|
|
done()
|
|
done()
|
|
|
return Promise.reject()
|
|
return Promise.reject()
|
|
|
}
|
|
}
|
|
|
- return (this.isAdd ? addProduct : this.updateProduct)(this.currObj).then(done)
|
|
|
|
|
|
|
+ return (this.isAdd ? addProduct : updateProduct)(this.currObj).then(done)
|
|
|
},
|
|
},
|
|
|
onDel (product) {
|
|
onDel (product) {
|
|
|
return deleteProduct(product).then(() => {
|
|
return deleteProduct(product).then(() => {
|