From 8239d69033d076110f1a62a84041e9cbb8db8d6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A5=BF=E7=93=9C=C2=B0?= Date: Mon, 10 Aug 2026 16:26:04 +0800 Subject: [PATCH] =?UTF-8?q?new:=E6=B7=BB=E5=8A=A0=E9=BB=91=E6=AD=A6?= =?UTF-8?q?=E6=8A=80=E8=83=BD=E6=8E=92=E5=88=97=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/Character/Config/importSkill.vue | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/Character/Config/importSkill.vue b/frontend/src/pages/Character/Config/importSkill.vue index 02cc906d..a5bf02e4 100644 --- a/frontend/src/pages/Character/Config/importSkill.vue +++ b/frontend/src/pages/Character/Config/importSkill.vue @@ -16,6 +16,22 @@ export default defineComponent({ const res = await api.getSkillFromCode(skillCode.value) // console.log(res) configStore.config.skills = res.skills + const shortcuts: { skill_id: number; slot_index: number }[] = res.shortcuts + const combos: { slot_index: number; skills: { skill_id: number }[] }[] = res.combos + console.log('shortcuts', res) + const alter = res.job.name + if (alter == 'dark_knight') { + configStore.config.skillShortcuts = { + // 黑暗武士前7个快捷键是组合技能,后面才是快捷栏 + shortcuts: shortcuts.slice(6).map((a) => a.skill_id?.toString() ?? ''), + combos: combos.map((a) => a.skills.map((b) => b.skill_id.toString() ?? '')), + } + } else { + configStore.config.skillShortcuts = { + shortcuts: shortcuts.map((a) => a.skill_id?.toString() ?? ''), + combos: [], + } + } const { alert } = useDialog() visible.value = false await alert({ @@ -53,12 +69,12 @@ export default defineComponent({

* 点击导入后会根据规则解析出技能加点、技能进化、技能强化

-

- * 部分技能可能存在无法识别的情况,需要手动调整 -

+

* 部分技能可能存在无法识别的情况,需要手动调整

- 导入 + + 导入 + (visible.value = false)}>取消