bug
Codex Assistant
2025-11-05 3714621173c606c4c58439ed8941100ce9ddea14
web/src/views/check-detail.vue
@@ -411,13 +411,13 @@
const getGenderText = (gender: number) => {
  const genderMap: Record<number, string> = {
    1: '男',
    2: '女'
    0: '女'
  }
  return genderMap[gender] || '-'
}
// 获取学历文本
const getEducationText = (education: number) => {
const getEducationText = (education: number | string) => {
  const educationMap: Record<number, string> = {
    1: '高中',
    2: '大专',
@@ -425,7 +425,8 @@
    4: '硕士',
    5: '博士'
  }
  return educationMap[education] || '-'
  const numEducation = typeof education === 'string' ? parseInt(education) : education
  return educationMap[numEducation] || '-'
}
// 获取状态文本