Browse Source

店铺产品列表链接新窗口打开

yangc 8 years ago
parent
commit
17c1f0fa2d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      components/store/CommodityList.vue

+ 2 - 2
components/store/CommodityList.vue

@@ -256,11 +256,11 @@ export default {
       this.pageCommodity(this.pageParams, this.ids, this.searchCode)
     },
     goBatchDetail (storeId, batchCode) {
-      this.$router.push('/store/' + storeId + '/' + batchCode)
+      window.open('/store/' + storeId + '/' + batchCode)
     },
     goBrandDetail (url, event) {
       event.stopPropagation()
-      this.$router.push(url)
+      window.open(url)
     }
 //    goBack () {
 //      this.$router.back(-1)