zhangxc 4 年之前
父節點
當前提交
fe68ac482f
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 1 0
      src/js/cdss.js
  2. 3 0
      src/js/staticSearch.js

+ 1 - 0
src/js/cdss.js

@@ -536,6 +536,7 @@ function bindTabClick(){
     const moduleName = $(this).attr("data-name")
     getModuleShow(moduleConfig[moduleName])
     if(moduleName == "medical"){
+      $(".staticSearchT .ipt").find("input").focus()
       $(".contentWrapper").css("overflowY","hidden")
     }else{
       $(".contentWrapper").css("overflowY","auto")

+ 3 - 0
src/js/staticSearch.js

@@ -163,3 +163,6 @@ $(".staticSearchT").on('click','#clearKnowledge',function() {
     $(this).prev('.ipt').find('input').focus()
     $(this).css({display:"none"})
 })
+$(function(){
+    $(".staticSearchT .ipt").find("input").focus()
+})