Explorar el Código

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

From-wh hace 3 años
padre
commit
6b8c2e44f5
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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.$Message.error(res.msg);
             });
+          if (this.formValidate.spec_type == 1) {
+            this.generate(1);
+          }
         }
       }
       switch (index) {