浏览代码

修改器件详情页打开规格书操作

yangc 7 年之前
父节点
当前提交
02801ff223
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      components/mobile/brand/ComponentDetail.vue

+ 5 - 1
components/mobile/brand/ComponentDetail.vue

@@ -261,7 +261,11 @@
       goAttach: function (url) {
         if (this.user.logged) {
           if (url && url !== '1') {
-            window.location.href = url
+            window.open(url)
+//            window.location.href = url
+          } else {
+            this.collectResult = '规格书地址错误'
+            this.timeoutCount++
           }
         } else {
           this.url = this.$route.fullPath