This commit is contained in:
2026-06-10 12:13:24 +08:00
parent ea05b8ff43
commit 15ee762a52
2 changed files with 9 additions and 6 deletions
@@ -227,7 +227,7 @@ const setOathAdaptation = (part: string, value: string) => {
const partsToApply = oathBatchApply.value ? infoStore.oathParts : [part];
partsToApply.forEach((item) => {
if (!configStore.config.oaths[item]) {
configStore.config.oaths[item] = { ...configStore.defaultOathConfig };
configStore.config.oaths[item] = configStore.createDefaultOathConfig();
}
configStore.config.oaths[item].adaptation = Math.max(0, parsed);
});
@@ -488,7 +488,7 @@ const resetEquipPart = (part: string) => {
const resetOathPart = (part: string) => {
configStore.config.oaths[part] = {
...configStore.defaultOathConfig,
...configStore.createDefaultOathConfig(),
id: configStore.config.oaths[part]?.id ?? "",
};
setNotice(`已重置誓约槽位 ${part}。`);
@@ -504,7 +504,7 @@ const resetAllForge = () => {
});
oathParts.value.forEach((part) => {
configStore.config.oaths[part] = {
...configStore.defaultOathConfig,
...configStore.createDefaultOathConfig(),
id: configStore.config.oaths[part]?.id ?? "",
};
});