CzRger 1 kuukausi sitten
vanhempi
commit
f76ac1f6d9
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      src/views/smart-ask-answer/assistant-2/chat.vue

+ 4 - 1
src/views/smart-ask-answer/assistant-2/chat.vue

@@ -114,6 +114,9 @@ const onSend = (text = '') => {
       content: state.params.query + ''
     }
     state.chats.push(ask)
+    const floatingDiv = ref_auto.value
+    floatingDiv.style.visibility = 'hidden';
+    floatingDiv.style.display = 'flex';
     const answer = reactive({
       type: 'answer',
       content: '',
@@ -269,7 +272,7 @@ const onNormal = (item) => {
 }
 const initTextHandle = () => {
   let debounceTimer;
-  const DEBOUNCE_TIME = 300;
+  const DEBOUNCE_TIME = 500;
   const textarea = ref_text.value
   const floatingDiv = ref_auto.value