This commit is contained in:
2026-04-22 03:10:18 +08:00
parent 7e63275649
commit 613c228bdf
19 changed files with 366 additions and 155 deletions
+8 -2
View File
@@ -45,6 +45,7 @@ export interface IConfig {
skills: Record<string, { lv: number; vp: number; up: number }>
equips: Record<string, IConfigEquip>
oaths: Record<string, IConfigOath>
oathSkill: string
jades: Record<
string,
{
@@ -111,6 +112,7 @@ export const useConfigStore = defineStore('configStore', () => {
skills: {},
equips: {},
oaths: {},
oathSkill: '1',
jades: {},
avatar: {},
sundry: {},
@@ -143,6 +145,7 @@ export const useConfigStore = defineStore('configStore', () => {
skills: {},
equips: {},
oaths: {},
oathSkill: '1',
jades: {},
avatar: {},
sundry: {},
@@ -230,7 +233,10 @@ export const useConfigStore = defineStore('configStore', () => {
const calc = async () => {
if (!useInfoStore().infos?.alter) return undefined
return await api.calc(config.value)
const res = await api.calc(config.value)
// const skillId = res.suits.oath?.suitId
// config.value.oathSkill = skillId || '1'
return res
}
const chooseEqu = (
@@ -258,7 +264,7 @@ export const useConfigStore = defineStore('configStore', () => {
uuid: '',
skills: [],
info: [],
suits: [],
suits: {},
buffer: false,
},
{ resetOnExecute: false },