vue3 搜索框节流

let  isSearch = ref(true)

const changeValue = (value) => {
    
    
      if (!state.isSearch) {
    
    
        return
      }
      state.isSearch = false
      setTimeout(() => {
    
    
        state.isSearch = true
      }, 1000)
    }

猜你喜欢

转载自blog.csdn.net/qq_41961239/article/details/120970825