fix:修复浅拷贝数组问题

This commit is contained in:
2026-06-10 12:11:55 +08:00
parent 97af0505b2
commit ea05b8ff43
5 changed files with 70 additions and 49 deletions
+5 -2
View File
@@ -109,10 +109,12 @@ const defaultOathConfig = {
adaptation: 0,
};
const defaultEmblemConfig = {
const createDefaultEmblemConfig = (): IConfigEmblem => ({
lv: 0,
items: ["", "", "", "", "", ""],
};
});
const defaultEmblemConfig = createDefaultEmblemConfig();
export const useConfigStore = defineStore("configStore", () => {
const config = ref<IConfig>({
@@ -309,6 +311,7 @@ export const useConfigStore = defineStore("configStore", () => {
defaultAvatarConfig,
defaultOathConfig,
defaultEmblemConfig,
createDefaultEmblemConfig,
changeSourceLogs,
pushChangeSource,
clearChangeSource,