Merge branch 'feature/06'
This commit is contained in:
@@ -40,11 +40,10 @@ const searchParam = reactive({
|
|||||||
//搜索工具
|
//搜索工具
|
||||||
const searchTools = async (query: string) => {
|
const searchTools = async (query: string) => {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
|
options.value = []
|
||||||
if (query) {
|
if (query) {
|
||||||
searchParam.title = query
|
searchParam.title = query
|
||||||
options.value = await toolsStore.getTools(searchParam)
|
options.value = await toolsStore.getTools(searchParam)
|
||||||
} else {
|
|
||||||
options.value = []
|
|
||||||
}
|
}
|
||||||
loading.value = false
|
loading.value = false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user