|
@@ -295,7 +295,13 @@ export default defineComponent({
|
|
|
q.mainNumber === store.currentQuestion?.mainNumber &&
|
|
|
q.subNumber === store.currentQuestion?.subNumber
|
|
|
);
|
|
|
- if (ts.length === 0) return;
|
|
|
+ if (ts.length === 0) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (ts.length === 1) {
|
|
|
+ // 即将清除最后一条记录,置为0,因为watch trackList 算分要考虑不同模式的回评,无法自动
|
|
|
+ store.currentQuestion.score = null;
|
|
|
+ }
|
|
|
const maxNumber = Math.max(...ts.map((q) => q.number));
|
|
|
const idx = store.currentMarkResult.trackList.findIndex(
|
|
|
(q) =>
|
|
@@ -303,11 +309,12 @@ export default defineComponent({
|
|
|
q.subNumber === store.currentQuestion?.subNumber &&
|
|
|
q.number === maxNumber
|
|
|
);
|
|
|
- if (idx >= 0)
|
|
|
+ if (idx >= 0) {
|
|
|
store.removeScoreTracks = store.currentMarkResult.trackList.splice(
|
|
|
idx,
|
|
|
1
|
|
|
);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
function clearAllMarksOfCurrentQuetion() {
|
|
@@ -325,6 +332,7 @@ export default defineComponent({
|
|
|
q.subNumber === store.currentQuestion?.subNumber
|
|
|
)
|
|
|
);
|
|
|
+ store.currentQuestion.score = null;
|
|
|
}
|
|
|
|
|
|
function submit() {
|