|
|
@@ -1449,7 +1449,10 @@
|
|
|
},
|
|
|
generate: function (type = 0) {
|
|
|
var that = this;
|
|
|
- var cate_id = $('input[name="cate_id"]').val()
|
|
|
+ var cate_id = $('input[name="cate_id"]').val();
|
|
|
+ if (cate_id === undefined) {
|
|
|
+ cate_id = 0;
|
|
|
+ }
|
|
|
this.requestPost(that.U({c:"store.StoreProduct",a:'is_format_attr',p:{id:that.id, cate_id:cate_id, type:type}}), {attrs:this.formData.items}).then(function (res) {
|
|
|
that.$set(that.formData, 'attrs', res.data.value);
|
|
|
that.$set(that, 'formHeader', res.data.header);
|