From fafe7465f2e9ccb75da68fdb8545281d9aef818f Mon Sep 17 00:00:00 2001 From: fofolee Date: Tue, 26 Apr 2022 20:30:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=86=92=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CommandRunResult.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CommandRunResult.vue b/src/components/CommandRunResult.vue index bafca2e..cb8579c 100644 --- a/src/components/CommandRunResult.vue +++ b/src/components/CommandRunResult.vue @@ -166,7 +166,7 @@ export default { setSubInput(currentCommand) { this.fromUtools && utools.setExpendHeight(0); let matched = specialVars.subinput.match.exec(currentCommand.cmd); - let placeholder = matched[1] || "↩ 执行命令,↑↓ 切换历史"; + let placeholder = matched[1]?.slice(1) || "↩ 执行命令,↑↓ 切换历史"; utools.setSubInput(({ text }) => { this.subInputValue = text; }, placeholder);