1
This commit is contained in:
@@ -104,10 +104,12 @@ const defaultAvatarConfig = {
|
||||
option: "0",
|
||||
};
|
||||
|
||||
const defaultOathConfig = {
|
||||
const createDefaultOathConfig = (): IConfigOath => ({
|
||||
id: "",
|
||||
adaptation: 0,
|
||||
};
|
||||
});
|
||||
|
||||
const defaultOathConfig = createDefaultOathConfig();
|
||||
|
||||
const createDefaultEmblemConfig = (): IConfigEmblem => ({
|
||||
lv: 0,
|
||||
@@ -202,7 +204,7 @@ export const useConfigStore = defineStore("configStore", () => {
|
||||
// oxlint-disable-next-line no-unused-expressions
|
||||
config.value &&
|
||||
!config.value?.oaths.hasOwnProperty(p) &&
|
||||
(config.value.oaths[p.toString()] = { ...defaultOathConfig });
|
||||
(config.value.oaths[p.toString()] = createDefaultOathConfig());
|
||||
});
|
||||
|
||||
infoStore.options.forEach((option) => {
|
||||
@@ -310,6 +312,7 @@ export const useConfigStore = defineStore("configStore", () => {
|
||||
defaultEqusConfig,
|
||||
defaultAvatarConfig,
|
||||
defaultOathConfig,
|
||||
createDefaultOathConfig,
|
||||
defaultEmblemConfig,
|
||||
createDefaultEmblemConfig,
|
||||
changeSourceLogs,
|
||||
|
||||
Reference in New Issue
Block a user