Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-12-15 11:08:39 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
40481310ee68b333a27f8c3ab8ce6ce6d3e58a77
40481310
1 parent
c25f5ceb
fix: 移除模拟数据并使用真实接口获取作业列表
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
6 deletions
src/views/checkin/CheckinDetailPage.vue
src/views/checkin/CheckinDetailPage.vue
View file @
4048131
...
...
@@ -799,7 +799,7 @@ onMounted(async () => {
// 初始化选中的子任务ID
selectedTaskValue.value = [route.query.subtask_id]
//
TODO:
获取小作业列表
// 获取小作业列表
const subtask_list = await getSubtaskListAPI({ task_id: route.query.id })
if (subtask_list.code) {
taskOptions.value = [...subtask_list.data.map(item => ({
...
...
@@ -809,11 +809,6 @@ onMounted(async () => {
]
}
// TODO: mock taskOptions 数据
taskOptions.value = [{ text: '作业一:基础练习', value: 'task1' },
{ text: '作业二:进阶挑战', value: 'task2' },
{ text: '作业三:综合应用', value: 'task3' }]
// 如果有默认选中值,初始化显示文本
if (selectedTaskValue.value.length > 0) {
const option = taskOptions.value.find(o => o.value === selectedTaskValue.value[0])
...
...
Please
register
or
login
to post a comment