|
@@ -47,7 +47,7 @@ interface SliceImage {
|
|
|
}
|
|
|
// should not render twice at the same time
|
|
|
let __lock = false;
|
|
|
-let __currentLibraryId = -1; // save __currentLibraryId of lock
|
|
|
+let __currentStudentId = -1; // save __currentStudentIdof lock
|
|
|
export default defineComponent({
|
|
|
name: "MarkBody",
|
|
|
components: { MarkDrawTrack },
|
|
@@ -104,7 +104,7 @@ export default defineComponent({
|
|
|
}
|
|
|
const renderPaperAndMark = async () => {
|
|
|
if (__lock) {
|
|
|
- if (store.currentTask?.libraryId === __currentLibraryId) {
|
|
|
+ if (store.currentTask?.studentId === __currentStudentId) {
|
|
|
console.log("重复渲染,返回");
|
|
|
return;
|
|
|
}
|
|
@@ -114,7 +114,7 @@ export default defineComponent({
|
|
|
return;
|
|
|
}
|
|
|
__lock = true;
|
|
|
- __currentLibraryId = store.currentTask?.libraryId ?? -1;
|
|
|
+ __currentStudentId = store.currentTask?.studentId ?? -1;
|
|
|
sliceImagesWithTrackList.splice(0);
|
|
|
|
|
|
if (!store.currentTask) {
|