Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
source-trace-manage
Commits
b5b22182
Commit
b5b22182
authored
Jun 13, 2022
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a3095a01
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
promise.ts
src/utils/promise.ts
+5
-0
index.vue
src/views/Collection/PassMaker/DialogOfSelectAlbum/index.vue
+1
-0
No files found.
src/utils/promise.ts
View file @
b5b22182
export
const
sleep
=
(
ms
:
number
)
=>
export
const
sleep
=
(
ms
:
number
)
=>
new
Promise
((
resolve
)
=>
setTimeout
(
resolve
,
ms
));
new
Promise
((
resolve
)
=>
setTimeout
(
resolve
,
ms
));
/**
* 在最大并发数MAX_REQUEST_NUM下,执行请求。
* @param promiseArray
* @param MAX_REQUEST_NUM
*/
export
const
executePromiseArray
=
async
(
export
const
executePromiseArray
=
async
(
promiseArray
:
(()
=>
Promise
<
any
>
)[],
promiseArray
:
(()
=>
Promise
<
any
>
)[],
MAX_REQUEST_NUM
=
8
MAX_REQUEST_NUM
=
8
...
...
src/views/Collection/PassMaker/DialogOfSelectAlbum/index.vue
View file @
b5b22182
...
@@ -99,6 +99,7 @@ const { tableData, fetchNextPage, refetch, loading } = useTableData({
...
@@ -99,6 +99,7 @@ const { tableData, fetchNextPage, refetch, loading } = useTableData({
page
,
page
,
page_size
,
page_size
,
name
:
searchInput
.
value
,
name
:
searchInput
.
value
,
ignore_empty
:
true
,
},
},
});
});
return
{
return
{
...
...
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