Browse Source

“-”不再能出现在搜索框

lighter 3 years ago
parent
commit
0553642707
1 changed files with 2 additions and 6 deletions
  1. 2 6
      src/views/hospitalization/case-front-sheet/FillCaseFrontSheet.vue

+ 2 - 6
src/views/hospitalization/case-front-sheet/FillCaseFrontSheet.vue

@@ -960,13 +960,9 @@ const executeSearch = () => {
     })
     return
   }
-  if (searchContent.value.length < 2 && searchContent.value !== '-') return
+  if (searchContent.value.length < 2) return
   currentSRPage.value = 1
-  if (searchContent.value === '-') {
-    searchResults.value = [{ code: '-', name: '-' }]
-  } else {
-    fetchSearchData()
-  }
+  fetchSearchData()
 }
 
 const showYbDiag = ref(false)