feat: 分數改為分組
This commit is contained in:
@@ -327,7 +327,6 @@ export const useAppStore = defineStore("app", () => {
|
||||
const measurements = ref<Record<string, MeasurementStation>>(
|
||||
createDefaultMeasurements(),
|
||||
);
|
||||
const healthScore = ref(72);
|
||||
const radarData = ref(createDefaultRadarData());
|
||||
const isReportGenerated = ref(false);
|
||||
|
||||
@@ -674,10 +673,6 @@ export const useAppStore = defineStore("app", () => {
|
||||
cardio: cardScore,
|
||||
};
|
||||
|
||||
const avg = Math.round(
|
||||
(strScore + balScore + flexScore + agiScore + cardScore) / 5,
|
||||
);
|
||||
healthScore.value = Math.min(100, avg + 5);
|
||||
isReportGenerated.value = true;
|
||||
}
|
||||
|
||||
@@ -693,7 +688,6 @@ export const useAppStore = defineStore("app", () => {
|
||||
}
|
||||
|
||||
isReportGenerated.value = false;
|
||||
healthScore.value = 72;
|
||||
radarData.value = createDefaultRadarData();
|
||||
}
|
||||
|
||||
@@ -705,7 +699,6 @@ export const useAppStore = defineStore("app", () => {
|
||||
selfAssessment,
|
||||
appointments,
|
||||
measurements,
|
||||
healthScore,
|
||||
radarData,
|
||||
isReportGenerated,
|
||||
completedStationsCount,
|
||||
|
||||
Reference in New Issue
Block a user