From 07cb22ff0e1e743eb24eb42fab87ff33c37a9e11 Mon Sep 17 00:00:00 2001 From: fofolee Date: Fri, 21 Feb 2025 23:45:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DmainHide=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E6=9C=AA=E6=AD=A3=E7=A1=AE=E4=BF=AE=E6=94=B9=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/commandManager.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/js/commandManager.js b/src/js/commandManager.js index 003d4e7..ebef0a2 100644 --- a/src/js/commandManager.js +++ b/src/js/commandManager.js @@ -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) {