去除冒号

This commit is contained in:
fofolee 2022-04-26 20:30:08 +08:00
parent 511cf11434
commit fafe7465f2

View File

@ -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);