fix: 修复项目案例对应单元显示问题
- 修复"长安幻夜"和"水墨苏乡"项目对应单元无法显示的问题 - 使用模板字符串处理包含中文双引号的项目名称键 - 调整JobInfoModal弹窗最大宽度为860px 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -138,10 +138,38 @@ export default ({ visible, onClose, data, directToResume = false, hideDeliverBut
|
||||
template.position === item.position
|
||||
);
|
||||
|
||||
// 添加调试日志
|
||||
console.log('查找简历模板:', {
|
||||
industryName: item.industry,
|
||||
positionTitle: item.position,
|
||||
templatesCount: industryTemplates.length,
|
||||
templatePositions: industryTemplates.map(t => t.position),
|
||||
templatesStructure: industryTemplates.slice(0, 2).map(t => ({
|
||||
position: t.position,
|
||||
hasContent: !!t.content,
|
||||
hasStudentInfo: !!t.studentInfo,
|
||||
keys: Object.keys(t)
|
||||
}))
|
||||
});
|
||||
|
||||
if (positionTemplate) {
|
||||
console.log('找到的模板:', {
|
||||
position: positionTemplate.position,
|
||||
hasContent: !!positionTemplate.content,
|
||||
hasContentOriginal: !!positionTemplate.content?.original,
|
||||
hasStudentInfo: !!positionTemplate.studentInfo,
|
||||
templateKeys: Object.keys(positionTemplate),
|
||||
contentKeys: positionTemplate.content ? Object.keys(positionTemplate.content) : null
|
||||
});
|
||||
} else {
|
||||
console.warn('未找到简历模板:', item.position);
|
||||
}
|
||||
|
||||
// 构造简历数据,使用与ResumeInterviewPage相同的格式
|
||||
const resumeData = {
|
||||
title: item.position, // 使用岗位名称作为标题
|
||||
content: positionTemplate?.content || null, // 这里包含原始版和修改版数据
|
||||
selectedTemplate: positionTemplate, // 添加selectedTemplate字段
|
||||
studentResume: pageData.myResume
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user