Browse Source

医健宝-店铺合并代码相关问题修复

chenguo 1 month ago
parent
commit
2a6b496ed1

+ 1 - 1
src/views/hisStore/storeProduct/index.vue

@@ -1276,7 +1276,7 @@ export default {
     },
     //生成SKU
     generate () {
-      genFormatAttr(this.form.productId, { attrs:JSON.stringify({attrs: this.attrs}),storeIds: null}).then(res => {
+      genFormatAttr(this.form.productId, { attrs: this.attrs }).then(res => {
         if(this.form.specType === 0){
           this.oneFormValidate = res.value;
           this.form.header = res.header;

+ 1 - 1
src/views/hisStore/storeProductAudit/index.vue

@@ -1044,7 +1044,7 @@ export default {
     },
     //生成SKU
     generate () {
-      genFormatAttr(this.form.productId, { attrs:JSON.stringify({attrs: this.attrs}),storeIds: null}).then(res => {
+      genFormatAttr(this.form.productId, { attrs: this.attrs }).then(res => {
         if(this.form.specType === 0){
             this.oneFormValidate = res.value;
             this.form.header = res.header;