File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
ui/src/views/tool/toolStore Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,7 @@ const loading = ref(false)
128128const searchValue = ref (' ' )
129129const folderId = ref (' ' )
130130const toolType = ref (' INTERNAL' )
131-
132- const categories = ref <ToolCategory []>([
131+ const defaultCategories = ref <ToolCategory []>([
133132 // 第一版不上
134133 // {
135134 // id: 'recommend',
@@ -162,6 +161,8 @@ const categories = ref<ToolCategory[]>([
162161 // tools: []
163162 // }
164163])
164+ const categories = ref <ToolCategory []>([... defaultCategories .value ])
165+
165166const filterList = ref <any >(null )
166167
167168function getSubTitle(tool : any ) {
@@ -188,6 +189,7 @@ async function getList() {
188189
189190async function getInternalToolList() {
190191 try {
192+ categories .value = defaultCategories .value
191193 const res = await ToolStoreApi .getInternalToolList ({ name: searchValue .value }, loading )
192194 if (searchValue .value .length ) {
193195 filterList .value = res .data
You can’t perform that action at this time.
0 commit comments