fix(applyEditKeyMappingList): ts error

This commit is contained in:
AkiChase 2024-05-19 11:26:49 +08:00
parent c6d67ab904
commit 1ffece2496

View File

@ -45,7 +45,7 @@ export const useGlobalStore = defineStore("global", () => {
if (set.has((keyMapping as KeySteeringWheel).key[name])) return false;
set.add((keyMapping as KeySteeringWheel).key[name]);
}
} else {
} else if (keyMapping.type !== "Fire") {
if (set.has(keyMapping.key as string)) return false;
set.add(keyMapping.key as string);
}