修复下载插件后插件列表显示开启 (#1560)

下载后插件应该为禁用状态,但是前端显示启用状态
This commit is contained in:
冷曦 2026-01-29 13:12:54 +08:00 committed by GitHub
parent adabc4da46
commit 73fcfb5900
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,7 @@ const PluginDisplayCard: React.FC<PluginDisplayCardProps> = ({
hasConfig = false,
}) => {
const { name, version, author, description, status } = data;
const isEnabled = status !== 'disabled';
const isEnabled = status === 'active';
const [processing, setProcessing] = useState(false);
const handleToggle = () => {