2828 </div >
2929 </template >
3030
31- <LayoutContainer v-loading =" loading" :minLeftWidth =" 204" >
31+ <LayoutContainer v-loading =" loading" :minLeftWidth =" 204" >
3232 <template #left >
3333 <el-anchor
3434 direction =" vertical"
6363 :get-sub-title =" getSubTitle"
6464 @handleAdd =" handleOpenAdd(tool)"
6565 @handleDetail =" handleDetail(tool)"
66- />
66+ >
67+ </ToolCard >
6768 </el-col >
6869 </el-row >
6970 </div >
@@ -151,17 +152,14 @@ function open(id: string) {
151152
152153async function getList() {
153154 filterList .value = null
154- const [v1, v2] = await Promise .all ([
155- getInternalToolList (),
156- getStoreToolList ()
157- ])
155+ const [v1, v2] = await Promise .all ([getInternalToolList (), getStoreToolList ()])
158156
159157 const merged = [... v1 , ... v2 ].reduce ((acc , category ) => {
160158 const existing = acc .find ((item : any ) => item .id === category .id )
161159 if (existing ) {
162160 existing .tools = [... existing .tools , ... category .tools ]
163161 } else {
164- acc .push ({... category })
162+ acc .push ({ ... category })
165163 }
166164 return acc
167165 }, [] as ToolCategory [])
@@ -174,7 +172,7 @@ async function getInternalToolList() {
174172 const categories = defaultCategories .value
175173 const res = await ToolStoreApi .getInternalToolList ({ name: searchValue .value }, loading )
176174 if (searchValue .value .length ) {
177- filterList .value = [... res .data , ... filterList .value || []]
175+ filterList .value = [... res .data , ... ( filterList .value || []) ]
178176 } else {
179177 filterList .value = null
180178 categories .forEach ((category ) => {
@@ -203,7 +201,7 @@ async function getStoreToolList() {
203201 tool .desc = tool .description
204202 })
205203 if (searchValue .value .length ) {
206- filterList .value = [... res .data .apps , ... filterList .value || []]
204+ filterList .value = [... res .data .apps , ... ( filterList .value || []) ]
207205 } else {
208206 filterList .value = null
209207 categories = tags .map ((tag : any ) => ({
0 commit comments