mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: fix tool store search
This commit is contained in:
parent
12f76b19ed
commit
7f9ab8de4d
|
|
@ -221,12 +221,16 @@ async function getStoreToolList() {
|
|||
storeTools.forEach((tool: any) => {
|
||||
tool.desc = tool.description
|
||||
})
|
||||
|
||||
categories.value = tags.map((tag: any) => ({
|
||||
id: tag.key,
|
||||
title: tag.name, // 国际化
|
||||
tools: storeTools.filter((tool: any) => tool.label === tag.key),
|
||||
}))
|
||||
if (searchValue.value.length) {
|
||||
filterList.value = res.data.apps
|
||||
} else {
|
||||
filterList.value = null
|
||||
categories.value = tags.map((tag: any) => ({
|
||||
id: tag.key,
|
||||
title: tag.name, // 国际化
|
||||
tools: storeTools.filter((tool: any) => tool.label === tag.key),
|
||||
}))
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
}
|
||||
|
|
@ -302,6 +306,7 @@ async function handleStoreAdd(tool: any) {
|
|||
}
|
||||
|
||||
function radioChange() {
|
||||
searchValue.value = ''
|
||||
getList()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue