// 学历字典:后端存英文枚举,页面统一显示中文 export const EDUCATION_LABELS = { secondary: "中专及以下", junior_college: "大专", bachelor: "本科", master: "硕士", doctor: "博士及以上", }; export function formatEducation(value) { if (value === null || value === undefined || value === "") return value; return EDUCATION_LABELS[value] || value; } export default formatEducation;