Selaa lähdekoodia

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

yangc 7 vuotta sitten
vanhempi
commit
02801ff223
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      components/mobile/brand/ComponentDetail.vue

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

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