修复mainHide属性未正确修改的BUG

This commit is contained in:
fofolee 2025-02-21 23:45:54 +08:00
parent eb17456d4d
commit 07cb22ff0e

View File

@ -56,9 +56,7 @@ const getValidCommand = (command) => {
command.features.cmds = getLabeledCmds(cmds, explain);
// 不需要显示输入框的输入类型添加mainHide属性
if (outputTypes[command.output].outPlugin) {
command.features.mainHide = true;
}
command.features.mainHide = outputTypes[command.output].outPlugin || false;
// 生成唯一code
if (!command.features.code) {