修正總分語細項不統一的問題

This commit is contained in:
2025-09-24 18:28:24 +08:00
parent b4ee9da2bc
commit e44a94a35f
6 changed files with 65 additions and 23 deletions

View File

@@ -263,7 +263,7 @@ export async function POST(request: NextRequest) {
score: score,
max_score: maxScore,
weight: criteriaItem.weight,
weighted_score: (score / maxScore) * criteriaItem.weight,
weighted_score: (score / maxScore) * (criteriaItem.weight / 100),
percentage: (score / maxScore) * 100
};
@@ -274,7 +274,7 @@ export async function POST(request: NextRequest) {
score: score,
max_score: maxScore,
weight: criteriaItem.weight,
weighted_score: (score / maxScore) * criteriaItem.weight,
weighted_score: (score / maxScore) * (criteriaItem.weight / 100),
percentage: (score / maxScore) * 100
});