Browse Source

部分链接跳转问题

yangc 8 years ago
parent
commit
cde6105e43
2 changed files with 2 additions and 2 deletions
  1. 1 1
      components/store/CommodityInfo.vue
  2. 1 1
      components/store/RecommendProduct.vue

+ 1 - 1
components/store/CommodityInfo.vue

@@ -228,7 +228,7 @@ export default {
           // this.$store.dispatch('user/getBuyInfo', [{uuid: item.uuid, batchCode: item.batchCode, number: item.minBuyQty}])
           axios.post('trade/order/buyNow', [{uuid: item.uuid, batchCode: item.batchCode, number: this.fragment.num}])
             .then(response => {
-              window.location.href = 'user#/order/pay/' + this.enidfilter(response.data.orderid)
+              window.location.href = '/user#/order/pay/' + this.enidfilter(response.data.orderid)
             }, err => {
               console.log(err)
               this.$http.get('/login/page').then(response => {

+ 1 - 1
components/store/RecommendProduct.vue

@@ -51,7 +51,7 @@
             // this.$store.dispatch('user/getBuyInfo', [{uuid: item.uuid, batchCode: item.batchCode, number: item.minBuyQty}])
             axios.post('trade/order/buyNow', [{uuid: item.uuid, batchCode: item.batchCode, number: item.minBuyQty}])
               .then(response => {
-                window.location.href = 'user#/order/pay/' + this.enidfilter(response.data.orderid)
+                window.location.href = '/user#/order/pay/' + this.enidfilter(response.data.orderid)
               }, err => {
                 console.log(err)
                 this.$http.get('/login/page').then(response => {