Selaa lähdekoodia

解决类型传参问题

mrh 1 vuosi sitten
vanhempi
sitoutus
195566f322
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/App.vue

+ 2 - 2
src/App.vue

@@ -139,9 +139,9 @@ const onSubmit = (e: any, answer = undefined) => {
       behavior: 'smooth',
     });
   });
-  getAIAnswer(answer ?? e);
+  getAIAnswer();
 };
-const getAIAnswer = async (content: string) => {
+const getAIAnswer = async () => {
   const newMessage = {
     from: 'ai-model',
     content: '',