소스 검색

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

yangc 8 년 전
부모
커밋
17c1f0fa2d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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)
       this.pageCommodity(this.pageParams, this.ids, this.searchCode)
     },
     },
     goBatchDetail (storeId, batchCode) {
     goBatchDetail (storeId, batchCode) {
-      this.$router.push('/store/' + storeId + '/' + batchCode)
+      window.open('/store/' + storeId + '/' + batchCode)
     },
     },
     goBrandDetail (url, event) {
     goBrandDetail (url, event) {
       event.stopPropagation()
       event.stopPropagation()
-      this.$router.push(url)
+      window.open(url)
     }
     }
 //    goBack () {
 //    goBack () {
 //      this.$router.back(-1)
 //      this.$router.back(-1)