Browse Source

请求添加/

yangc 7 years ago
parent
commit
05d5be7860

+ 1 - 1
components/common/buyOrCar/buyComponent.vue

@@ -57,7 +57,7 @@
                   }
                 })
             } else {
-              this.$http.post('trade/cart/add', {
+              this.$http.post('/trade/cart/add', {
                 uuid: this.item.uuid,
                 batchCode: this.item.batchCode,
                 number: this.item.minBuyQty,

+ 1 - 1
components/store/CommodityInfo.vue

@@ -407,7 +407,7 @@
                 })
             } else {
               // this.$store.dispatch('user/addCar', {uuid: item.uuid, batchCode: item.batchCode, number: item.minBuyQty})
-              this.$http.post('trade/cart/add', {
+              this.$http.post('/trade/cart/add', {
                 uuid: item.uuid,
                 batchCode: item.batchCode,
                 number: this.fragment.num,

+ 1 - 1
components/store/RecommendProduct.vue

@@ -125,7 +125,7 @@
                 })
             } else {
               // this.$store.dispatch('user/addCar', {uuid: item.uuid, batchCode: item.batchCode, number: item.minBuyQty})
-              this.$http.post('trade/cart/add', {
+              this.$http.post('/trade/cart/add', {
                 uuid: item.comUuid,
                 batchCode: item.batchCode,
                 number: item.minBuyQty,

+ 1 - 1
store/help/help.js

@@ -4,7 +4,7 @@ export const actions = {
   // 获取帮助中心信息
   loadHelpSnapsho ({ commit }, params = {}) {
     commit('help/option/REQUEST_SNAPSHO')
-    return axios.get('api/help-service/helps', {params})
+    return axios.get('/api/help-service/helps', {params})
       .then(response => {
         commit('help/option/GET_SNAPSHO_SUCCESS', response.data)
       }, err => {