Explorar o código

feat: 大题选择显示大题号

chenhao %!s(int64=2) %!d(string=hai) anos
pai
achega
e3b98a4691
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/hooks/useOptions.ts

+ 1 - 1
src/hooks/useOptions.ts

@@ -85,7 +85,7 @@ const useOptions = (
       mainQuestionListResult.value?.map<QuestionList>((v) => {
         return {
           ...v,
-          label: v.title,
+          label: `${v.mainNumber}-${v.title}`,
           value: v.mainNumber,
         }
       }) || []