刘洋 пре 1 година
родитељ
комит
881bedeb77
2 измењених фајлова са 9 додато и 9 уклоњено
  1. 8 8
      src/hooks/useOptions.ts
  2. 1 1
      types/components.d.ts

+ 8 - 8
src/hooks/useOptions.ts

@@ -162,14 +162,14 @@ const useOptions = (
   })
 
   const groupList = computed<Group[]>(() => {
-    return (
-      groupListResult?.value?.map((n) => {
-        return {
-          value: n,
-          label: `第${n}组`,
-        }
-      }) || []
-    )
+    return dataModel.question
+      ? groupListResult?.value?.map((n) => {
+          return {
+            value: n,
+            label: `第${n}组`,
+          }
+        }) || []
+      : []
   })
 
   const groupListWithAll = computed(() => {

+ 1 - 1
types/components.d.ts

@@ -94,7 +94,7 @@ declare module 'global-type' {
     checkbox: typeof BaseCheckBox
     select: typeof BaseSelect
     date: typeof ElDatePicker
-    dateTime: typeof ElDatePicker
+    dateTime: any
   }
 
   export type ElFormItemProps = Omit<