修复默认命令被覆盖的bug

This commit is contained in:
fofolee 2024-01-22 22:18:11 +08:00
parent 7c5ce1dfab
commit 325c6c746a

View File

@ -334,9 +334,10 @@ export default {
//
getAllQuickCommands() {
this.allQuickCommands = _.cloneDeep(defaultCommands);
this.$root.utools
.getAll("qc_")
.forEach((x) => (this.allQuickCommands[x.data.features.code] = x.data));
this.$root.utools.getAll("qc_").forEach((x) => {
if (x.data.features.code.includes("default_")) return;
this.allQuickCommands[x.data.features.code] = x.data;
});
this.getAllQuickCommandTags();
},
getAllQuickCommandTags() {