视图修改、接口修改
This commit is contained in:
@@ -78,7 +78,7 @@ export const learningTaskApi = {
|
||||
* @returns Promise<ResultDomain<boolean>>
|
||||
*/
|
||||
async deleteTask(taskID: string): Promise<ResultDomain<boolean>> {
|
||||
const response = await api.delete<boolean>(`${this.learningTaskPrefix}/task/${taskID}`);
|
||||
const response = await api.delete<boolean>(`${this.learningTaskPrefix}/task`, {taskID});
|
||||
return response.data;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user