@@ -191,7 +191,8 @@ export default {
},
methods: {
init() {
- getCategory().then(() => {
+ getCategory()
+ .then(() => {
if (this.option.id) {
this._getDet();
}
@@ -229,6 +230,9 @@ export default {
if (form.stock == "") {
form.stock = -1;
+ if(this.option.id){
+ form.id = this.option.id
+ }
host({
status: this.status,
...form