|
@@ -175,9 +175,9 @@ watch(
|
|
|
() => {
|
|
|
if (markStore.currentQuestion) {
|
|
|
const { __index } = markStore.currentQuestion;
|
|
|
+ const scoreR = markStore.currentTask?.markResult?.scoreList[__index];
|
|
|
scoreStr =
|
|
|
- markStore.currentTask?.markResult?.scoreList[__index] ||
|
|
|
- markStore.currentQuestion.score;
|
|
|
+ scoreR || scoreR === 0 ? scoreR : markStore.currentQuestion.score;
|
|
|
if (isNumber(scoreStr)) {
|
|
|
scoreStr = "" + scoreStr;
|
|
|
} else {
|
|
@@ -350,19 +350,19 @@ onUnmounted(() => {
|
|
|
document.removeEventListener("keydown", numberKeyListener);
|
|
|
});
|
|
|
|
|
|
-const scrollToQuestion = (question: Question) => {
|
|
|
- const node = document.querySelector(
|
|
|
- `#q-${question.mainNumber}-${question.subNumber}`
|
|
|
- );
|
|
|
- node && node.scrollIntoView({ behavior: "smooth" });
|
|
|
-};
|
|
|
+// const scrollToQuestion = (question: Question) => {
|
|
|
+// const node = document.querySelector(
|
|
|
+// `#q-${question.mainNumber}-${question.subNumber}`
|
|
|
+// );
|
|
|
+// node && node.scrollIntoView({ behavior: "smooth" });
|
|
|
+// };
|
|
|
|
|
|
-watch(
|
|
|
- () => markStore.currentQuestion,
|
|
|
- () => {
|
|
|
- markStore.currentQuestion && scrollToQuestion(markStore.currentQuestion);
|
|
|
- }
|
|
|
-);
|
|
|
+// watch(
|
|
|
+// () => markStore.currentQuestion,
|
|
|
+// () => {
|
|
|
+// markStore.currentQuestion && scrollToQuestion(markStore.currentQuestion);
|
|
|
+// }
|
|
|
+// );
|
|
|
|
|
|
function cancelProblem() {
|
|
|
if (!markStore.currentQuestion) return;
|