diff --git a/web/src/app/home/plugins/plugin-installed/PluginInstalledComponent.tsx b/web/src/app/home/plugins/plugin-installed/PluginInstalledComponent.tsx index 21002be7..5137ecab 100644 --- a/web/src/app/home/plugins/plugin-installed/PluginInstalledComponent.tsx +++ b/web/src/app/home/plugins/plugin-installed/PluginInstalledComponent.tsx @@ -66,41 +66,57 @@ const PluginInstalledComponent = forwardRef( } return ( -
- - - - 插件配置 - -
- {selectedPlugin && ( - { - setModalOpen(false); - getPluginList(); - }} - onFormCancel={() => { - setModalOpen(false); - }} - /> - )} -
-
-
+ <> + {pluginList.length === 0 ? ( +
+ + + +
暂无已安装的插件
+
+ ) : ( +
+ + + + 插件配置 + +
+ {selectedPlugin && ( + { + setModalOpen(false); + getPluginList(); + }} + onFormCancel={() => { + setModalOpen(false); + }} + /> + )} +
+
+
- {pluginList.map((vo, index) => { - return ( -
- handlePluginClick(vo)} - /> -
- ); - })} -
+ {pluginList.map((vo, index) => { + return ( +
+ handlePluginClick(vo)} + /> +
+ ); + })} +
+ )} + ); }, );