Parcourir la source

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

yangc il y a 7 ans
Parent
commit
02801ff223
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  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