Преглед изворни кода

improve: 商品编辑类型切换数据更新

From-wh пре 2 година
родитељ
комит
6b8c2e44f5
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      template/admin/src/pages/product/productAdd/index.vue

+ 3 - 0
template/admin/src/pages/product/productAdd/index.vue

@@ -1944,6 +1944,9 @@ export default {
               this.formValidate.spec_type = this.spec_type;
               this.formValidate.spec_type = this.spec_type;
               this.$Message.error(res.msg);
               this.$Message.error(res.msg);
             });
             });
+          if (this.formValidate.spec_type == 1) {
+            this.generate(1);
+          }
         }
         }
       }
       }
       switch (index) {
       switch (index) {