运行时不保存但记录历史

This commit is contained in:
fofolee 2024-12-20 13:44:37 +08:00
parent 129375ff20
commit 1cb2dee7df

View File

@ -212,7 +212,7 @@ export default {
}, },
// //
runCurrentCommand(cmd) { runCurrentCommand(cmd) {
this.saveCurrentCommand(null); this.saveToHistory(); //
let command = _.cloneDeep(this.quickcommandInfo); let command = _.cloneDeep(this.quickcommandInfo);
if (cmd) command.cmd = cmd; if (cmd) command.cmd = cmd;
command.output = command.output =
@ -291,7 +291,7 @@ export default {
.command-editor-container { .command-editor-container {
color: black; color: black;
background: white; background: white;
overflow: hidden overflow: hidden;
} }
.body--dark .command-editor-container { .body--dark .command-editor-container {