@@ -14,7 +14,7 @@ export default defineComponent({
|
||||
const { state, execute, isLoading } = useAsyncState(
|
||||
async () => {
|
||||
const res = await api.getSkillFromCode(skillCode.value)
|
||||
console.log(res)
|
||||
// console.log(res)
|
||||
configStore.config.skills = res.skills
|
||||
const { alert } = useDialog()
|
||||
visible.value = false
|
||||
|
||||
@@ -30,7 +30,7 @@ const weapons = computed(() => {
|
||||
const items = infoStore.equips.filter(
|
||||
(equip) => equip.itemType === '武器' && equip.itemDetailType == '光剑',
|
||||
)
|
||||
console.log(items)
|
||||
// console.log(items)
|
||||
const res: (IEquipment | undefined)[] = []
|
||||
Array.from(new Set(items.map((item) => item.itemDetailType))).forEach((type) => {
|
||||
const weapon = items.filter((item) => item.itemDetailType === type)
|
||||
|
||||
@@ -358,7 +358,7 @@ const curOathSkillInfo = computed(() => {
|
||||
if (!res) {
|
||||
return undefined
|
||||
}
|
||||
console.log(curEquInfo.value?.suit[0])
|
||||
// console.log(curEquInfo.value?.suit[0])
|
||||
return {
|
||||
...res,
|
||||
SkillAttack: parseFloat(res.SkillAttack.toString().split(',')[curOathSkillLv.value.lv - 1]),
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user