소스 검색

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

chenguo 1 개월 전
부모
커밋
2a6b496ed1
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/views/hisStore/storeProduct/index.vue
  2. 1 1
      src/views/hisStore/storeProductAudit/index.vue

+ 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;