|
@@ -335,7 +335,17 @@ export default defineComponent({
|
|
|
console.log("不在有效宽度内,轨迹不生效");
|
|
|
return;
|
|
|
}
|
|
|
- store.currentScore = undefined;
|
|
|
+ // 是否保留当前的轨迹分
|
|
|
+ const ifKeepScore =
|
|
|
+ store.currentQuestion.maxScore -
|
|
|
+ (store.currentQuestion.score || 0) -
|
|
|
+ store.currentScore * 2;
|
|
|
+ if (
|
|
|
+ (ifKeepScore < 0 && store.currentScore > 0) ||
|
|
|
+ ifKeepScore % store.currentQuestion.intervalScore !== 0
|
|
|
+ ) {
|
|
|
+ store.currentScore = undefined;
|
|
|
+ }
|
|
|
const markResult = findCurrentTaskMarkResult();
|
|
|
if (markResult) {
|
|
|
markResult.trackList = [...markResult.trackList, track];
|