Explorar el Código

更新 模糊搜索最小长度为2

wzh hace 3 años
padre
commit
8ac5a517dd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/components/ShipSearch.vue

+ 1 - 1
src/components/ShipSearch.vue

@@ -39,7 +39,7 @@ export default {
     let selectStr = ref("");
     const getSelectList = _.debounce(
       async (queryString, cb) => {
-        if (queryString.length < 3) return;
+        if (queryString.length < 2) return;
         let res = await api[props.api]({
           term: queryString,
         });