zhaolf 3 lat temu
rodzic
commit
446094baa1

+ 2 - 2
public/js/config.js

@@ -1,6 +1,6 @@
 window.global_config = {
-  // BASE_URL: 'http://221.224.53.27:20038/',
+  BASE_URL: 'http://221.224.53.27:20038/',
   // BASE_URL: 'http://172.16.0.28:8085/',
-  BASE_URL: 'http://1.116.38.179:184/',
+  // BASE_URL: 'http://1.116.38.179:184/',
 
 }

+ 2 - 2
src/pages/goods/addGoods/index.vue

@@ -358,10 +358,10 @@
                     store.commit('SET_ISDISABLE',false)
                     store.commit('SET_GOODS_ID',0)
                     this.outproductidDisable=false
-                    this.title='新的审核内容'
+                    this.title='新增商品'
                     let data=JSON.parse(this.$route.params.data)
                     this.form.title=data.title
-                    this.form.out_product_id=data.out_product_id
+                    // this.form.out_product_id=data.out_product_id
                     this.form.stock_num=data.stock_num
                     this.form.sale_price=data.sale_price
                     this.form.market_price=data.market_price

+ 2 - 2
src/pages/goods/index.vue

@@ -173,8 +173,8 @@
             params.third_cat_id =res.data.third_cat_audit==0?'-1':res.data.third_cat_id
             params.goodsList = [{url: res.data.thumb_img}]
             params.goodszizhiList = []
-            if (res.data.qualificationImgs.length > 0) {
-                  res.data.qualificationImgs.forEach(element => {
+            if (res.data.qualificationImgs?.length > 0) {
+                  res.data.qualificationImgs?.forEach(element => {
                     params.goodszizhiList.push({
                       url: element
                       })