Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-27 00:18:02 +08:00
co-authored by Copilot
parent 32e6d47ce4
commit 18ac23caa3
13 changed files with 827 additions and 54 deletions
@@ -67,7 +67,7 @@ const clearStandard = () => {
const chooseCategory = (cat: 'equ' | 'oath') => {
type.value = cat
console.log(type.value)
// console.log(type.value)
}
</script>
@@ -86,7 +86,7 @@ const order = ref<'asc' | 'desc'>('desc')
const config = useConfigStore()
const data = computed(() => {
return props.data.sort((a, b) => {
return [...props.data].sort((a, b) => {
let aValue = 0
let bValue = 0
if (['cd', 'name'].includes(sort.value)) {
@@ -208,7 +208,7 @@ const correction = computed(() => {
})
const changeSkillId = (skill: { skillId: string; enable: boolean }) => {
console.log(skill)
// console.log(skill)
if (!skill.enable) return
if (activeSkillId.value !== skill.skillId) {
activeSkillId.value = skill.skillId
@@ -218,7 +218,7 @@ const changeSkillId = (skill: { skillId: string; enable: boolean }) => {
const oathSkills = computed(() => {
const skillOrder = ['2', '1', '3']
const res = props.suits.oath?.skills.sort((left, right) => {
const res = [...(props.suits.oath?.skills ?? [])].sort((left, right) => {
const leftIndex = skillOrder.indexOf(left.skillId)
const rightIndex = skillOrder.indexOf(right.skillId)
const normalizedLeftIndex = leftIndex === -1 ? skillOrder.length : leftIndex
@@ -236,7 +236,7 @@ const oathSkills = computed(() => {
const equ = (id: string) => {
if (props.display == 'oath') {
console.log(props.oaths, id)
// console.log(props.oaths, id)
return infoStore.oaths.find((e) => e.id == id)
}
return infoStore.equips.find((e) => e.id == id)