MCPcopy Create free account
hub / github.com/Xu22Web/tech-study-js / getTaskList

Function getTaskList

tech-study.js:653–668  ·  view source on GitHub ↗

* @description 获取任务列表

()

Source from the content-addressed store, hash-verified

651 * @description 获取任务列表
652 */
653async function getTaskList() {
654 try {
655 const res = await fetch(API_CONFIG.taskList, {
656 method: 'GET',
657 credentials: 'include',
658 });
659 // 请求成功
660 if (res.ok) {
661 const { data } = await res.json();
662 // 进度和当天总分
663 const { taskProgress } = data;
664 return taskProgress;
665 }
666 }
667 catch (err) { }
668}
669/* task·配置 */
670/**
671 * @description 单次最大新闻数

Callers 1

refreshTaskListFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected