fix(resume): remove shadowing local ResumeSectionCfg (use types.ts with edu kind)

This commit is contained in:
root
2026-10-17 12:48:13 +08:00
parent f95efd481f
commit 9d2e14b72a
20 changed files with 113 additions and 80 deletions
+8 -1
View File
@@ -8,7 +8,8 @@ import { Button, Dialog, Field, Input, Select, Textarea, useToast } from '@/comp
const EMPTY: ProfileInfo = {
name: '', gender: '', birth: '', nation: '', native: '', political: '',
school: '', college: '', major: '', className: '', studentId: '', degree: '',
phone: '', email: '', homepage: '', photoUrl: '', selfIntro: ''
phone: '', email: '', homepage: '', photoUrl: '', selfIntro: '',
eduLength: '', eduStart: '', eduEnd: '', majorCourses: ''
};
const FIELD_GROUPS: { title: string; fields: { key: keyof ProfileInfo; label: string; type?: string; options?: string[] }[] }[] = [
@@ -27,6 +28,12 @@ const FIELD_GROUPS: { title: string; fields: { key: keyof ProfileInfo; label: st
{ key: 'className', label: '班级' },
{ key: 'studentId', label: '学号' },
{ key: 'degree', label: '学历层次', options: ['', '专科', '本科', '硕士研究生', '博士研究生'] },
{ key: 'eduLength', label: '学制', options: ['', '两年', '三年', '四年', '五年'] },
{ key: 'eduStart', label: '入学时间', type: 'month' },
{ key: 'eduEnd', label: '毕业时间', type: 'month' },
]},
{ title: '主修课程', fields: [
{ key: 'majorCourses', label: '主修课程' },
]},
{ title: '联系方式', fields: [
{ key: 'phone', label: '手机' },