|
@@ -324,10 +324,12 @@ export default {
|
|
if (this.form.id != null) {
|
|
if (this.form.id != null) {
|
|
updateProduct(this.form).then((response) => {
|
|
updateProduct(this.form).then((response) => {
|
|
this.msgSuccess("暂存成功");
|
|
this.msgSuccess("暂存成功");
|
|
|
|
+ this.$router.go(-1)
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
addProduct(this.form).then((response) => {
|
|
addProduct(this.form).then((response) => {
|
|
this.msgSuccess("暂存成功");
|
|
this.msgSuccess("暂存成功");
|
|
|
|
+ this.$router.go(-1)
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|