添加觉醒绑定

This commit is contained in:
2025-04-17 18:47:32 +08:00
parent 9e9d18c7cf
commit 7360031728
9 changed files with 85 additions and 26 deletions
+4
View File
@@ -51,6 +51,7 @@ export interface IConfig {
}
>
sundry: Record<string, any>
bindAwake: number
}
const defaultEqusConfig = {
@@ -82,6 +83,7 @@ export const useConfigStore = defineStore('configStore', () => {
jades: {},
avatar: {},
sundry: {},
bindAwake: 50
})
const skillCountConfig = ref<IResultSkillCount[]>([])
@@ -107,12 +109,14 @@ export const useConfigStore = defineStore('configStore', () => {
jades: {},
avatar: {},
sundry: {},
bindAwake: 50
}
if (!config.value?.equips) config.value.equips = {}
if (!config.value?.skills) config.value.skills = {}
if (!config.value?.jades) config.value.jades = {}
if (!config.value?.avatar) config.value.avatar = {}
if (!config.value?.sundry) config.value.sundry = {}
if (!config.value?.bindAwake) config.value.bindAwake = 50
const part = [...infoStore.parts, '宠物', '副武器'].filter(
(a) => !config.value?.equips.hasOwnProperty(a),