Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-28 01:42:15 +08:00
co-authored by Copilot
parent a5d22d3b88
commit 5dfdc9da10
5 changed files with 26 additions and 24 deletions
@@ -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