Browse Source

优化type check

Michael Wang 3 years ago
parent
commit
7baf26d2d5
1 changed files with 2 additions and 2 deletions
  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",