diff --git a/src/views/appStore/components/appList.vue b/src/views/appStore/components/appList.vue index dc169ef2d33c012413208e07b7a563fbaa3dc9ce..ffd4211cde67b73f227e1f98d4a6791304fc8515 100644 --- a/src/views/appStore/components/appList.vue +++ b/src/views/appStore/components/appList.vue @@ -47,11 +47,7 @@ const requestAppList = (params = { page: 1, size: 9999 }) => { if (res.code === 200) { const { list, rowTotal } = res.data?.data originalAppList.value = list - onlyLocalAppList.value = originalAppList.value.map(item => { - if (! isUndefined(localInstallList.value[`${item.space}/${item.identifier}`]) ) { - return item - } - }) + onlyLocalAppList.value = originalAppList.value.filter(item => !isUndefined(localInstallList.value[`${item.space}/${item.identifier}`])); total.value = rowTotal loading.value = false setAppList()