Эх сурвалжийг харах

feat: 优化!搜索tab点击当前所在tab不跳转

cuiyalong 1 жил өмнө
parent
commit
4d886fbd6a

+ 4 - 2
src/web/templates/pc/supsearch.html

@@ -5078,8 +5078,10 @@ function checkTagDisabled () {
         if (item === this.searchTab) {
           return
         }
-        if(item === 1) {
-          location.replace('/jylab/supsearch/index.html')
+        if (!goTemplateData.inIframe) {
+          if(item === 1) {
+            location.replace('/jylab/supsearch/index.html')
+          }
         }
         this.searchTab = item
         // if (item !== 0) {