zhangjie 1 năm trước cách đây
mục cha
commit
fefae6df04
2 tập tin đã thay đổi với 17 bổ sung13 xóa
  1. 13 12
      src/features/mark/MarkBody.vue
  2. 4 1
      src/features/mark/MarkHeader.vue

+ 13 - 12
src/features/mark/MarkBody.vue

@@ -90,18 +90,19 @@ const makeScoreTrack = (
     console.log("不在有效宽度内,轨迹不生效");
     return;
   }
-  if (
-    item.trackList.some((t) => {
-      return (
-        Math.pow(Math.abs(t.offsetX - track.offsetX), 2) +
-          Math.pow(Math.abs(t.offsetY - track.offsetY), 2) <
-        500
-      );
-    })
-  ) {
-    console.log("两个轨迹相距过近");
-    return;
-  }
+  // 暂时不限制
+  // if (
+  //   item.trackList.some((t) => {
+  //     return (
+  //       Math.pow(Math.abs(t.offsetX - track.offsetX), 2) +
+  //         Math.pow(Math.abs(t.offsetY - track.offsetY), 2) <
+  //       500
+  //     );
+  //   })
+  // ) {
+  //   console.log("两个轨迹相距过近");
+  //   return;
+  // }
   // 是否保留当前的轨迹分
   const questionScore =
     store.currentTask &&

+ 4 - 1
src/features/mark/MarkHeader.vue

@@ -264,7 +264,10 @@ watchEffect(() => {
 
 const todoCount = $computed(() =>
   typeof store.status.totalCount === "number"
-    ? store.status.totalCount - store.status.markedCount
+    ? store.status.totalCount -
+      store.status.markedCount -
+      store.status.problemCount -
+      store.status.arbitrateCount
     : "-"
 );