Commit 384de44f authored by martin hou's avatar martin hou

fix: 调整文件列表查询等待超时时长

parent 1d67763b
...@@ -861,13 +861,13 @@ Jensen.prototype.listFiles = async function () { ...@@ -861,13 +861,13 @@ Jensen.prototype.listFiles = async function () {
jensen[kv] = now; jensen[kv] = now;
// 要怎么样触发这个回调?
jensen[kv] = window.setTimeout(() => { jensen[kv] = window.setTimeout(() => {
console.log('remove tag: ' + tag); console.log('remove tag: ' + tag);
jensen[tag] = null; jensen[tag] = null;
jensen._trigger(files.filter((f) => { return Boolean(f.time); }), QUERY_FILE_LIST); jensen._trigger(files.filter((f) => { return Boolean(f.time); }), QUERY_FILE_LIST);
console.log('jensen', 'list-files', 'timed return'); console.log('jensen', 'list-files', 'timed return');
}, 1000); }, 2500);
}); });
return this.send(new Command(QUERY_FILE_LIST)); return this.send(new Command(QUERY_FILE_LIST));
......
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