Commit 2604a515 authored by martin hou's avatar martin hou

fix: 增加跟踪

parent c0da6d2b
...@@ -681,9 +681,11 @@ Jensen.prototype.listFiles = async function () { ...@@ -681,9 +681,11 @@ Jensen.prototype.listFiles = async function () {
this[tag] = []; this[tag] = [];
this.registerHandler(QUERY_FILE_LIST, (msg, jensen) => { this.registerHandler(QUERY_FILE_LIST, (msg, jensen) => {
console.log('tag', tag); console.log('tag', tag);
if (msg.body.length == 0) { if (msg.body.length == 0)
console.log('remove tag: ' + tag); {
console.log('remove tag1: ' + tag);
jensen[tag] = null; jensen[tag] = null;
jensen._trigger([], QUERY_FILE_LIST);
return []; return [];
} }
if (jensen[tag] == null) if (jensen[tag] == null)
......
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