@@ -68,8 +68,10 @@ $("#searchInp").bind("input propertychange",function(event){
//搜索
$('#searchBtn').click(function(){
const val = $('#searchInp').val()
- getGraph(val,'diagnose')
- updateTree(val)
+ if(val){
+ getGraph(val,'diagnose')
+ updateTree(val)
+ }
})
//切换tab