修复默认命令被覆盖的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() { getAllQuickCommands() {
this.allQuickCommands = _.cloneDeep(defaultCommands); this.allQuickCommands = _.cloneDeep(defaultCommands);
this.$root.utools this.$root.utools.getAll("qc_").forEach((x) => {
.getAll("qc_") if (x.data.features.code.includes("default_")) return;
.forEach((x) => (this.allQuickCommands[x.data.features.code] = x.data)); this.allQuickCommands[x.data.features.code] = x.data;
});
this.getAllQuickCommandTags(); this.getAllQuickCommandTags();
}, },
getAllQuickCommandTags() { getAllQuickCommandTags() {