mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-20 10:55:43 +08:00
将ai接口移至quickcommand,支持在配置菜单全局配置ai接口
This commit is contained in:
18
src/App.vue
18
src/App.vue
@@ -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();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user