El-input fuzzy search, immediately initiate the request after input, and return the list of results below?

problem description

when entered, the request is initiated. When the input value of watch changes, the request is initiated. The list of returned data is listed below the input box

.

the environmental background of the problems and what methods you have tried

refer to this post, but this method is to first put the list in an array, while mine is dynamic. I keep making requests as I type, and then the following data list changes
https://blog.csdn.net/sanling...

.

related codes

/ / Please paste the code text below (do not replace the code with pictures)
< el-autocomplete v placeholder= model = "moduleName" enter module name (fuzzy search) "clearable

                                   :fetch-suggestions="querySearch"
                  ></el-autocomplete>

what result do you expect? What is the error message actually seen?

Apr.24,2022

querySearch(query, cb){
    //ajax
    //successcblist
    //cb(list)
}
Menu