Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jensen
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Skye Yu
jensen
Commits
c0da6d2b
Commit
c0da6d2b
authored
Jul 12, 2025
by
martin hou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 取消文件数量验证
parent
c3543d65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
18 deletions
+7
-18
jensen.js
src/utils/jensen.js
+7
-18
No files found.
src/utils/jensen.js
View file @
c0da6d2b
...
...
@@ -666,6 +666,7 @@ Jensen.prototype.listFiles = async function () {
let
tag
=
'filelist-'
+
this
.
serialNumber
+
'-'
+
this
.
sequence
();
if
(
this
[
tag
]
!=
null
)
return
null
;
/*
let fc = null;
if (typeof this.versionNumber == 'undefined' || this.versionNumber <= 327722) {
fc = await this.getFileCount(5);
...
...
@@ -673,6 +674,7 @@ Jensen.prototype.listFiles = async function () {
}
if (fc && fc.count == 0) return null;
*/
let
self
=
this
;
// let tag = 'data_' + new Date().getTime();
...
...
@@ -793,26 +795,13 @@ Jensen.prototype.listFiles = async function () {
jensen
[
kv
]
=
now
;
if
((
fc
&&
files
.
length
>=
fc
.
count
)
||
(
fcount
>
-
1
&&
files
.
length
>=
fcount
))
{
// delete jensen[tag];
// 要怎么样触发这个回调?
jensen
[
kv
]
=
window
.
setTimeout
(()
=>
{
console
.
log
(
'remove tag: '
+
tag
);
jensen
[
tag
]
=
null
;
window
.
clearTimeout
(
jensen
[
kv
]);
console
.
log
(
'jensen'
,
'list-files'
,
'normal return'
);
return
files
.
filter
((
f
)
=>
{
return
Boolean
(
f
.
time
);
});
}
else
{
// 要怎么样触发这个回调?
jensen
[
kv
]
=
window
.
setTimeout
(()
=>
{
console
.
log
(
'remove tag: '
+
tag
);
jensen
[
tag
]
=
null
;
jensen
.
_trigger
(
files
.
filter
((
f
)
=>
{
return
Boolean
(
f
.
time
);
}),
QUERY_FILE_LIST
);
console
.
log
(
'jensen'
,
'list-files'
,
'timed return'
);
},
1000
);
}
jensen
.
_trigger
(
files
.
filter
((
f
)
=>
{
return
Boolean
(
f
.
time
);
}),
QUERY_FILE_LIST
);
console
.
log
(
'jensen'
,
'list-files'
,
'timed return'
);
},
1000
);
});
return
this
.
send
(
new
Command
(
QUERY_FILE_LIST
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment