Explorar o código

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

wzh %!s(int64=3) %!d(string=hai) anos
pai
achega
8ac5a517dd
Modificáronse 1 ficheiros con 1 adicións e 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,
         });