浏览代码

style: change focus method

Carson 1 年之前
父节点
当前提交
9008625048
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/Search/index.vue

+ 1 - 1
components/Search/index.vue

@@ -145,7 +145,7 @@ watchDebounced(
 );
 const searchRecommend = (e) => {
   filterText.value = e.target.innerText
-  input$.value.focus()
+  focused.value = true
 }
 </script>
 <template>