搜索调整,用接口数据

This commit is contained in:
tangly1024
2022-03-02 15:31:13 +08:00
parent 608ab06c40
commit 7c91dc3fb3
2 changed files with 7 additions and 4 deletions

View File

@@ -2,6 +2,8 @@ import { useRouter } from 'next/router'
import { useGlobal } from '@/lib/global'
import { useImperativeHandle, useRef, useState } from 'react'
let lock = false
const SearchInput = ({ currentTag, currentSearch, cRef }) => {
const { locale } = useGlobal()
// const [searchKey, setSearchKey] = useState(currentSearch || '')
@@ -39,7 +41,6 @@ const SearchInput = ({ currentTag, currentSearch, cRef }) => {
searchInputRef.current.value = ''
setShowClean(false)
}
let lock = false
function lockSearchInput () {
lock = true
}