|
@@ -337,13 +337,16 @@ export default defineComponent({
|
|
|
}
|
|
|
// 是否保留当前的轨迹分
|
|
|
const ifKeepScore =
|
|
|
- (store.currentQuestion.maxScore * 10 -
|
|
|
- (store.currentQuestion.score || 0) * 10 -
|
|
|
- store.currentScore * 2 * 10) /
|
|
|
- 10;
|
|
|
+ Math.round(
|
|
|
+ store.currentQuestion.maxScore * 100 -
|
|
|
+ (store.currentQuestion.score || 0) * 100 -
|
|
|
+ store.currentScore * 2 * 100
|
|
|
+ ) / 100;
|
|
|
if (
|
|
|
(ifKeepScore < 0 && store.currentScore > 0) ||
|
|
|
- (ifKeepScore * 10) % (store.currentQuestion.intervalScore * 10) !== 0
|
|
|
+ Math.round(ifKeepScore * 100) %
|
|
|
+ Math.round(store.currentQuestion.intervalScore * 100) !==
|
|
|
+ 0
|
|
|
) {
|
|
|
store.currentScore = undefined;
|
|
|
}
|