fix:修复浅拷贝数组问题
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user