Procházet zdrojové kódy

Revert "guidebook -> open new link"

This reverts commit f6132e7117eba43f945d1fe36c3f35a65d5b07fb.
Timmy před 1 rokem
rodič
revize
9d9aafe89a

+ 1 - 7
hichina-main-front-mobile-first/src/pages/GuideIntroPage.vue

@@ -45,7 +45,7 @@
       >
         <div class="q-pa-md">
           <q-card
-            @click="openGuidebookLink(item.downloadUrl)"
+            @click="gotoUrl(item.downloadUrl)"
             class="guidebook-card cursor-pointer rounded-borders"
             @mouseenter="hoverFlag = true"
             @mouseleave="hoverFlag = false"
@@ -124,11 +124,6 @@ export default {
           console.error("Error:", err);
         });
     }
-    function openGuidebookLink(url) {
-      if (url) {
-        window.open(url, "_blank"); // Open the URL in a new tab
-      }
-    }
 
     onMounted(() => {
       logPv();
@@ -142,7 +137,6 @@ export default {
       sliders,
       tab: ref("lg"),
       guidebooks,
-      openGuidebookLink,
     };
   },
 };