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-10-14 13:57:22 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d9e598921a4d0dfc92dc9383aa70935691b186cf
d9e59892
1 parent
f9cb211d
fix(teacher/formPage): 初始化周期选择默认值
确保表单加载时自动设置周期选择的默认值
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/views/teacher/formPage.vue
src/views/teacher/formPage.vue
View file @
d9e5989
...
...
@@ -945,6 +945,10 @@ onMounted(async () => {
value: String(value) // 确保值为字符串类型
}));
// 初始化周期选择
formData.value.cycle_text = cycleOptions.value[0].text;
formData.value.cycle = cycleOptions.value[0].value;
// 处理作业类型数据
if (data.task_attachment_type) {
attachmentTypeOptions.value = Object.entries(data.task_attachment_type).map(([key, value]) => ({
...
...
Please
register
or
login
to post a comment