Commit d56c5013 by haojie

1

parent ec0898b1
...@@ -167,7 +167,7 @@ const onChange = (value: string) => { ...@@ -167,7 +167,7 @@ const onChange = (value: string) => {
getTokenList(); getTokenList();
}; };
const getTokenList = () => { const getTokenList = () => {
if (keyword.value.trim() === '') { if (keyword.value.trim() === '' || keyword.value.length == 1) {
return; return;
} }
if (!loadingMore.value) { if (!loadingMore.value) {
...@@ -262,7 +262,7 @@ const resultFilter = (list) => { ...@@ -262,7 +262,7 @@ const resultFilter = (list) => {
}); });
return newList; return newList;
}; };
const doSeach = debounce(getTokenList, 500, true); const doSeach = debounce(getTokenList, 500);
const getPopularList = async () => { const getPopularList = async () => {
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment