zy-acs-flow/src/map/insight/agv/useCoolHook.js
@@ -32,11 +32,13 @@ const debouncedFetch = useCallback(debounce(fetchData, 300), [url]); useEffect(() => { if (inputValue) { debouncedFetch(inputValue); } else { setOptions([]); } // console.log(inputValue, url) // if (inputValue) { // debouncedFetch(inputValue); // } else { // setOptions([]); // } debouncedFetch(inputValue); }, [inputValue, debouncedFetch]); return {