Explorar o código

优化type check

Michael Wang %!s(int64=3) %!d(string=hai) anos
pai
achega
7baf26d2d5
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/features/student/inspect/MarkBody.vue

+ 2 - 2
src/features/student/inspect/MarkBody.vue

@@ -46,9 +46,9 @@ interface SliceImage {
   originalImageHeight: number;
 }
 
-const { usingImage } = withDefaults(
+const { usingImage = "sliceUrls" } = withDefaults(
   defineProps<{
-    usingImage: "sheetUrls" | "sliceUrls";
+    usingImage?: "sheetUrls" | "sliceUrls";
   }>(),
   {
     usingImage: "sliceUrls",