zhouna пре 4 година
родитељ
комит
fdef821ce4
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/js/searchStaticList.js

+ 2 - 2
src/js/searchStaticList.js

@@ -18,7 +18,7 @@ $(function(){
   initData()
   getAllTypes()
   getSearchList()
-  getTabData(curPage)
+  getTabData()
 });
 //tab
 function renderTab(data){
@@ -110,7 +110,7 @@ function renderList(tabList){
     $('.resultItem').click(function(){
         let name = $(this).attr('data-name')
         let type = $(this).attr('data-type')
-        window.location.href = `./staticInfo.html?name=${name}&type=${type}`
+        window.open(`./staticInfo.html?name=${name}&type=${type}`);
     })
 }
 function initData(){