This commit is contained in:
2026-04-23 00:25:01 +08:00
parent 2cbf95a55e
commit 1b69571d8a
6 changed files with 249 additions and 27 deletions
@@ -58,7 +58,7 @@
<!-- :class="['flex-1', skill.active ? 'bg-#3ea74e text-white' : 'bg-#000000bf text-#836832']" -->
<template v-for="skill in oathSkills" :key="skill.id">
<div
class="flex items-center px-5px flex-col skill"
class="flex items-center px-5px flex-col skill-item"
:class="{ active: skill.active, disabled: !skill.enable }"
@click="changeSkillId(skill)"
>
@@ -290,7 +290,7 @@ const lvFormat = (lv: number, rarity: string) => {
}
.oath-skill {
.skill {
.skill-item {
&.active {
}
+3 -2
View File
@@ -234,8 +234,9 @@ export const useConfigStore = defineStore('configStore', () => {
const calc = async () => {
if (!useInfoStore().infos?.alter) return undefined
const res = await api.calc(config.value)
// const skillId = res.suits.oath?.suitId
// config.value.oathSkill = skillId || '1'
if (res.suits.oath?.suitId != res.suits.suit?.suitId) {
config.value.oathSkill = '1'
}
return res
}