fix: fix tool store search
parent
b60c471694
commit
0101370dc7
|
|
@ -221,12 +221,16 @@ async function getStoreToolList() {
|
||||||
storeTools.forEach((tool: any) => {
|
storeTools.forEach((tool: any) => {
|
||||||
tool.desc = tool.description
|
tool.desc = tool.description
|
||||||
})
|
})
|
||||||
|
if (searchValue.value.length) {
|
||||||
categories.value = tags.map((tag: any) => ({
|
filterList.value = res.data.apps
|
||||||
id: tag.key,
|
} else {
|
||||||
title: tag.name, // 国际化
|
filterList.value = null
|
||||||
tools: storeTools.filter((tool: any) => tool.label === tag.key),
|
categories.value = tags.map((tag: any) => ({
|
||||||
}))
|
id: tag.key,
|
||||||
|
title: tag.name, // 国际化
|
||||||
|
tools: storeTools.filter((tool: any) => tool.label === tag.key),
|
||||||
|
}))
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
}
|
}
|
||||||
|
|
@ -302,6 +306,7 @@ async function handleStoreAdd(tool: any) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function radioChange() {
|
function radioChange() {
|
||||||
|
searchValue.value = ''
|
||||||
getList()
|
getList()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue