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
abe9f454
Commit
abe9f454
authored
Dec 16, 2025
by
天马流星拳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(api): 修改completeTask接口配置为对象形式
将completeTask接口从字符串形式改为对象配置,支持指定method和withToken参数
parent
5b42aeb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
index.ts
src/api/index.ts
+6
-1
No files found.
src/api/index.ts
View file @
abe9f454
...
...
@@ -51,7 +51,12 @@ const API = generateAPI({
// 获取任务列表的接口
getTaskList
:
"task_1/queryTasks.do"
,
// 完成任务接口
completeTask
:
"task_1/doCompleted.do"
,
// 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