dev
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user