feat: latest code update
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<text class="score-num">{{ diagnosisResult.score }}</text>
|
||||
<text class="score-label">/100</text>
|
||||
</view>
|
||||
<text class="summary-text">{{ diagnosisResult.summary }}</text>
|
||||
<text class="summary-text" v-if="diagnosisResult.summary">{{ diagnosisResult.summary }}</text>
|
||||
</view>
|
||||
|
||||
<!-- 岗位匹配度(诊断模式) -->
|
||||
@@ -136,16 +136,19 @@ onLoad(async (options: any) => {
|
||||
function applyResult(data: any) {
|
||||
loading.value = false;
|
||||
if (isOptimize.value) {
|
||||
optimizedContent.value = data.optimizedContent || '';
|
||||
changes.value = data.changes || [];
|
||||
highlights.value = data.highlights || [];
|
||||
optimizedContent.value = data.optimized || '';
|
||||
changes.value = (data.changes || []).map((c: any) =>
|
||||
typeof c === 'string' ? { section: c, description: c } : c
|
||||
);
|
||||
highlights.value = [];
|
||||
} else {
|
||||
diagnosisResult.value = data;
|
||||
changes.value = (data.issues || []).map((i: any) => ({
|
||||
...i,
|
||||
typeLabel: i.type === 'structure' ? '结构' : i.type === 'content' ? '内容' : i.type === 'keywords' ? '关键词' : i.type === 'achievement' ? '成就' : '格式',
|
||||
typeLabel: i.level === 'high' ? '严重' : i.level === 'medium' ? '中等' : '轻微',
|
||||
description: i.desc || i.description,
|
||||
}));
|
||||
highlights.value = data.strengths || [];
|
||||
highlights.value = data.suggestions || [];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user