liyongli 2 years ago
parent
commit
f609c23afe
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/view/chatGptChatNew/index.vue

+ 3 - 3
src/view/chatGptChatNew/index.vue

@@ -136,11 +136,11 @@ function saveText() {
 }
 function focus() {
   if (!isIpad && !isIpod && !isIphone) return;
-  inputText.value = ' ';
+  !inputText.value && (inputText.value = ' ');
   let t = window.setTimeout(() => {
-    inputText.value = '';
+    inputText.value == ' ' && (inputText.value = '');
     window.clearTimeout(t);
-  }, 300);
+  }, 100);
 }
 </script>
 <style lang="scss">