@@ -341,7 +341,7 @@ const curOathInfo = computed(() => {
|
||||
return infoStore.oathSkills?.[curEquInfo.value?.suit[0]]
|
||||
})
|
||||
|
||||
const curOathSkillLvs = asyncComputed(async () => {
|
||||
const curOathSkillInfo = asyncComputed(async () => {
|
||||
if (!curOathInfo.value || !curEquInfo.value?.suit[0]) {
|
||||
return undefined
|
||||
}
|
||||
@@ -349,23 +349,24 @@ const curOathSkillLvs = asyncComputed(async () => {
|
||||
curEquInfo.value?.suit[0],
|
||||
oathSkillId.value,
|
||||
curOathSkillLv.value.rarity,
|
||||
curOathSkillLv.value.lv,
|
||||
)
|
||||
return res
|
||||
})
|
||||
|
||||
const curOathSkillInfo = computed(() => {
|
||||
const res = curOathSkillLvs.value
|
||||
if (!res) {
|
||||
return undefined
|
||||
}
|
||||
// console.log(curEquInfo.value?.suit[0])
|
||||
return {
|
||||
...res,
|
||||
SkillAttack: parseFloat(res.SkillAttack.toString().split(',')[curOathSkillLv.value.lv - 1]),
|
||||
Buffer: parseFloat(res.Buffer.toString().split(',')[curOathSkillLv.value.lv - 1]),
|
||||
point: parseFloat(res.point.toString().split(',')[curOathSkillLv.value.lv - 1]),
|
||||
}
|
||||
})
|
||||
// const curOathSkillInfo = computed(() => {
|
||||
// const res = curOathSkillLvs.value
|
||||
// if (!res) {
|
||||
// return undefined
|
||||
// }
|
||||
// // console.log(curEquInfo.value?.suit[0])
|
||||
// return {
|
||||
// ...res,
|
||||
// SkillAttack: parseFloat(res.SkillAttack.toString().split(',')[curOathSkillLv.value.lv - 1]),
|
||||
// Buffer: parseFloat(res.Buffer.toString().split(',')[curOathSkillLv.value.lv - 1]),
|
||||
// point: parseFloat(res.point.toString().split(',')[curOathSkillLv.value.lv - 1]),
|
||||
// }
|
||||
// })
|
||||
|
||||
const chooseCategory = (cat: string) => {
|
||||
type.value = cat
|
||||
|
||||
Reference in New Issue
Block a user