feat: finsh loading error comp

This commit is contained in:
Joel
2024-11-20 13:56:32 +08:00
parent e6a03f7a58
commit bb2914652a
5 changed files with 43 additions and 25 deletions

View File

@ -8,6 +8,7 @@ import { useFetchPluginsInMarketPlaceByIds } from '@/service/use-plugins'
import produce from 'immer'
import { useGetState } from 'ahooks'
import PackageItem from '../item/package-item'
import LoadingError from '../../base/loading-error'
type Props = {
allPlugins: Dependency[]
@ -105,7 +106,7 @@ const InstallByDSLList: FC<Props> = ({
{allPlugins.map((d, index) => {
if (errorIndexes.includes(index)) {
return (
<div key={index}>error</div>
<LoadingError key={index} />
)
}
if (d.type === 'github') {