Ver código fonte

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

yangc 7 anos atrás
pai
commit
02801ff223
1 arquivos alterados com 5 adições e 1 exclusões
  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