From ad7b07d080b69b5683ceb7174adc8d5225cbfe1a Mon Sep 17 00:00:00 2001 From: fofolee Date: Mon, 16 May 2022 23:32:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E8=BE=93=E5=85=A5=E6=A1=86=20bug=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= 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 09654d8..6e354bb 100644 --- a/src/components/CommandRunResult.vue +++ b/src/components/CommandRunResult.vue @@ -206,7 +206,7 @@ export default { setSubInput(currentCommand) { this.fromUtools && utools.setExpendHeight(0); let matched = specialVars.subinput.match.exec(currentCommand.cmd); - let placeholder = matched[1]?.slice(1) || "↩ 执行命令,↑↓ 切换历史"; + let placeholder = matched?.[1]?.slice(1) || "↩ 执行命令,↑↓ 切换历史"; utools.setSubInput(({ text }) => { this.subInputValue = text; }, placeholder);