Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TianGongKaiWu-20251203
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
TianGongKaiWu-20251203
Commits
c54de16c
Commit
c54de16c
authored
Dec 16, 2025
by
天马流星拳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(api): 简化完成任务接口配置
将完成任务接口从对象形式改为字符串形式,保持与其他接口配置风格一致
parent
cf166367
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
index.ts
src/api/index.ts
+6
-6
No files found.
src/api/index.ts
View file @
c54de16c
...
...
@@ -51,12 +51,12 @@ const API = generateAPI({
// 获取任务列表的接口
getTaskList
:
"task_1/queryTasks.do"
,
// 完成任务接口
//
completeTask: "task_1/doCompleted.do",
completeTask
:
{
uri
:
"task_1/doCompleted.do"
,
method
:
'post'
,
withToken
:
true
,
},
completeTask
:
"task_1/doCompleted.do"
,
//
completeTask: {
//
uri: "task_1/doCompleted.do",
//
method: 'post',
//
withToken: true,
//
},
// 任务领奖接口
sendPrizeTask
:
"task_1/sendPrize.do"
,
// 查询题目
...
...
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