Explorar o código

remove useless prop

Michael Wang %!s(int64=3) %!d(string=hai) anos
pai
achega
9bc07d0023

+ 0 - 1
src/features/arbitrate/MarkBody.vue

@@ -3,7 +3,6 @@
     v-if="store"
     :useMarkResult="false"
     :store="store"
-    uniquePropName="libraryId"
     @error="$emit('error')"
     :makeTrack="() => {}"
   />

+ 0 - 1
src/features/library/inspect/MarkBody.vue

@@ -3,7 +3,6 @@
     v-if="store"
     :useMarkResult="false"
     :store="store"
-    uniquePropName="studentId"
     @error="$emit('error')"
     :makeTrack="() => {}"
   />

+ 0 - 1
src/features/library/libraryTrack/MarkBody.vue

@@ -3,7 +3,6 @@
     v-if="store"
     :useMarkResult="false"
     :store="store"
-    uniquePropName="libraryId"
     @error="$emit('error')"
     :makeTrack="() => {}"
   />

+ 0 - 1
src/features/library/quality/MarkBody.vue

@@ -3,7 +3,6 @@
     v-if="store"
     :useMarkResult="false"
     :store="store"
-    uniquePropName="studentId"
     @error="$emit('error')"
     :makeTrack="() => {}"
   />

+ 1 - 7
src/features/mark/CommonMarkBody.vue

@@ -89,17 +89,11 @@ const props = defineProps<{
   useMarkResult?: boolean;
   makeTrack: Function;
   store: MarkStore; // 实际上不是同一个store!!! 最新的统一成一个相同的store了
-  uniquePropName: string; // TODO: 这个字段不需要了,是以前的rendering字段附带要求的
 }>();
 
 const emit = defineEmits(["error"]);
 
-const {
-  useMarkResult = false,
-  makeTrack,
-  store,
-  uniquePropName = "libraryId",
-} = props;
+const { useMarkResult = false, makeTrack, store } = props;
 
 // start: 图片拖动。在轨迹模式下,仅当没有选择分数时可用。
 const { dragContainer } = dragImage();

+ 0 - 1
src/features/mark/MarkBody.vue

@@ -1,7 +1,6 @@
 <template>
   <CommonMarkBody
     :useMarkResult="true"
-    uniquePropName="libraryId"
     :store="store"
     :makeTrack="makeTrack"
     @error="$emit('error')"