|
@@ -58,13 +58,7 @@
|
|
import { onMounted, onUnmounted, reactive, watch, watchEffect } from "vue";
|
|
import { onMounted, onUnmounted, reactive, watch, watchEffect } from "vue";
|
|
import { store } from "@/store/store";
|
|
import { store } from "@/store/store";
|
|
import MarkDrawTrack from "./MarkDrawTrack.vue";
|
|
import MarkDrawTrack from "./MarkDrawTrack.vue";
|
|
-import type {
|
|
|
|
- MarkResult,
|
|
|
|
- MarkStore,
|
|
|
|
- SliceImage,
|
|
|
|
- SpecialTag,
|
|
|
|
- Track,
|
|
|
|
-} from "@/types";
|
|
|
|
|
|
+import type { MarkResult, SliceImage, SpecialTag, Track } from "@/types";
|
|
import { useTimers } from "@/setups/useTimers";
|
|
import { useTimers } from "@/setups/useTimers";
|
|
import {
|
|
import {
|
|
getDataUrlForSliceConfig,
|
|
getDataUrlForSliceConfig,
|
|
@@ -86,10 +80,14 @@ type MakeTrack = (
|
|
const props = withDefaults(
|
|
const props = withDefaults(
|
|
defineProps<{
|
|
defineProps<{
|
|
useMarkResult?: boolean;
|
|
useMarkResult?: boolean;
|
|
- makeTrack: MakeTrack;
|
|
|
|
- store: MarkStore; // 以前不是一个类型的store,现在变成一样的了,所以这个可以删掉了,并且可以优化这个组件的使用
|
|
|
|
|
|
+ makeTrack?: MakeTrack;
|
|
}>(),
|
|
}>(),
|
|
- { useMarkResult: false, makeTrack: () => {} }
|
|
|
|
|
|
+ {
|
|
|
|
+ useMarkResult: false,
|
|
|
|
+ makeTrack: () => {
|
|
|
|
+ console.debug("非评卷界面makeTrack没有意义");
|
|
|
|
+ },
|
|
|
|
+ }
|
|
);
|
|
);
|
|
|
|
|
|
const emit = defineEmits(["error"]);
|
|
const emit = defineEmits(["error"]);
|