diff --git a/web/src/app/home/plugins/plugin-installed/plugin-card/PluginCardComponent.tsx b/web/src/app/home/plugins/plugin-installed/plugin-card/PluginCardComponent.tsx index 119a82bb..e77a2757 100644 --- a/web/src/app/home/plugins/plugin-installed/plugin-card/PluginCardComponent.tsx +++ b/web/src/app/home/plugins/plugin-installed/plugin-card/PluginCardComponent.tsx @@ -109,11 +109,32 @@ export default function PluginCardComponent({ /> -
- {/* */} -
+ {cardVO.repository && + cardVO.repository.trim() && + cardVO.repository.startsWith('http') && ( +
+ { + e.stopPropagation(); // 阻止事件冒泡 + if ( + cardVO.repository && + cardVO.repository.trim() && + cardVO.repository.startsWith('http') + ) { + window.open(cardVO.repository, '_blank'); + } + }} + > + + +
+ )}