|
@@ -28,9 +28,9 @@
|
|
<div class="total-score tw-ml-5 tw-font-bold" style="height: 50px">
|
|
<div class="total-score tw-ml-5 tw-font-bold" style="height: 50px">
|
|
<transition-group name="score-number-animation" tag="span">
|
|
<transition-group name="score-number-animation" tag="span">
|
|
<span
|
|
<span
|
|
- :key="store.currentTask.markResult.markerScore || 0"
|
|
|
|
|
|
+ :key="store.currentTask.markResult?.markerScore || 0"
|
|
class="tw-inline-block"
|
|
class="tw-inline-block"
|
|
- >{{ store.currentTask.markResult.markerScore }}</span
|
|
|
|
|
|
+ >{{ store.currentTask.markResult?.markerScore }}</span
|
|
>
|
|
>
|
|
</transition-group>
|
|
</transition-group>
|
|
</div>
|
|
</div>
|
|
@@ -167,12 +167,12 @@
|
|
<div style="height: 32px">
|
|
<div style="height: 32px">
|
|
<transition-group name="score-number-animation" tag="span">
|
|
<transition-group name="score-number-animation" tag="span">
|
|
<span
|
|
<span
|
|
- :key="store.currentTask?.markResult.scoreList[index] || 0"
|
|
|
|
|
|
+ :key="store.currentTask?.markResult?.scoreList[index] || 0"
|
|
class="tw-font-medium tw-text-2xl score tw-inline-block"
|
|
class="tw-font-medium tw-text-2xl score tw-inline-block"
|
|
>
|
|
>
|
|
<!-- 特殊的空格符号 -->
|
|
<!-- 特殊的空格符号 -->
|
|
<!-- eslint-disable-next-line no-irregular-whitespace -->
|
|
<!-- eslint-disable-next-line no-irregular-whitespace -->
|
|
- {{ store.currentTask?.markResult.scoreList[index] ?? " " }}
|
|
|
|
|
|
+ {{ store.currentTask?.markResult?.scoreList[index] ?? " " }}
|
|
</span>
|
|
</span>
|
|
</transition-group>
|
|
</transition-group>
|
|
</div>
|
|
</div>
|
|
@@ -376,7 +376,7 @@ const questionScore = $computed(
|
|
() =>
|
|
() =>
|
|
store.currentTask &&
|
|
store.currentTask &&
|
|
store.currentQuestion &&
|
|
store.currentQuestion &&
|
|
- store.currentTask.markResult.scoreList[store.currentQuestion.__index]
|
|
|
|
|
|
+ store.currentTask.markResult?.scoreList[store.currentQuestion.__index]
|
|
);
|
|
);
|
|
|
|
|
|
// const questionScoreSteps = $computed(() => {
|
|
// const questionScoreSteps = $computed(() => {
|