Commit 0655788c authored by martin hou's avatar martin hou

fix: 变量使用错误

parent 3e720d88
...@@ -690,9 +690,10 @@ Jensen.prototype.listFiles = async function () { ...@@ -690,9 +690,10 @@ Jensen.prototype.listFiles = async function () {
let fc = null; let fc = null;
fc = await this.getFileCount(5); fc = await this.getFileCount(5);
fc = fc ? fc.count : 0;
// if (fc == null) return []; // if (fc == null) return [];
if (fc && fc.count == 0) return []; if (fc == 0) return [];
console.log('file count: ' + fc); console.log('file count: ' + fc);
let self = this; let self = this;
...@@ -864,6 +865,7 @@ Jensen.prototype.listFiles = async function () { ...@@ -864,6 +865,7 @@ Jensen.prototype.listFiles = async function () {
} }
else if (fc > 0 && fc - files.length < 10) ts = 1000; else if (fc > 0 && fc - files.length < 10) ts = 1000;
else ts = 15000; else ts = 15000;
console.log('ts, fc, files.length', ts, fc, files.length);
jensen[kv] = window.setTimeout(() => { jensen[kv] = window.setTimeout(() => {
console.log('remove tag: ' + tag); console.log('remove tag: ' + tag);
jensen[tag] = null; 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