Browse Source

需求开发

刘洋 2 years ago
parent
commit
2cdd039e44
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/hooks/useOptions.ts

+ 5 - 0
src/hooks/useOptions.ts

@@ -213,6 +213,11 @@ const useOptions = (
         if (userInfo.value?.mainNumber && !dataModel.question) {
           changeModelValue('question')(userInfo.value?.mainNumber)
         }
+        if (userInfo.value?.role === 'EXPERT' && !userInfo.value?.mainNumber) {
+          if (mainQuestionList.value.length) {
+            changeModelValue('question')(mainQuestionList.value[0].value)
+          }
+        }
       },
       { deep: true }
     )