Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1d8676f4
authored
Feb 25, 2025
by
Netfan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore: remove sleep in department list api
1 parent
0c3dd925
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
7 deletions
apps/backend-mock/api/system/dept/list.ts
apps/backend-mock/api/system/dept/list.ts
View file @
1d8676f
import
{
faker
}
from
'@faker-js/faker'
;
import
{
verifyAccessToken
}
from
'~/utils/jwt-utils'
;
import
{
sleep
,
unAuthorizedResponse
,
useResponseSuccess
,
}
from
'~/utils/response'
;
import
{
unAuthorizedResponse
,
useResponseSuccess
}
from
'~/utils/response'
;
const
formatterCN
=
new
Intl
.
DateTimeFormat
(
'zh-CN'
,
{
timeZone
:
'Asia/Shanghai'
,
...
...
@@ -59,8 +55,6 @@ export default eventHandler(async (event) => {
return
unAuthorizedResponse
(
event
);
}
await
sleep
(
600
);
const
listData
=
structuredClone
(
mockData
);
return
useResponseSuccess
(
listData
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment