将ai接口移至quickcommand,支持在配置菜单全局配置ai接口

This commit is contained in:
fofolee
2025-02-18 00:59:28 +08:00
parent 3eca3b448e
commit 9e00a08253
13 changed files with 393 additions and 257 deletions

View File

@@ -129,19 +129,19 @@ export default defineComponent({
},
outPlugin() {
// 退出时保存RunCode和RunComposer的命令
if (!["code", "composer"].includes(this.$route.name)) return;
if (["code", "composer"].includes(this.$route.name)) {
let currentCommand = window.lodashM.cloneDeep(
this.commandManager.state.currentCommand
);
let currentCommand = window.lodashM.cloneDeep(
this.commandManager.state.currentCommand
);
if (this.$route.name === "composer") {
currentCommand =
this.commandManager.getLitedComposerCommand(currentCommand);
}
if (this.$route.name === "composer") {
currentCommand =
this.commandManager.getLitedComposerCommand(currentCommand);
dbManager.putDB(currentCommand, `cfg_${this.$route.name}History`);
}
dbManager.putDB(currentCommand, `cfg_${this.$route.name}History`);
this.$router.push("/");
this.saveProfile();
},