diff --git a/frontendNew/src/pages/Dcalc/Character/CalcDetail/index.vue b/frontendNew/src/pages/Dcalc/Character/CalcDetail/index.vue index c5d3d07b..31ed4bb7 100644 --- a/frontendNew/src/pages/Dcalc/Character/CalcDetail/index.vue +++ b/frontendNew/src/pages/Dcalc/Character/CalcDetail/index.vue @@ -188,8 +188,18 @@ const selectOathSkill = (skill: { skillId: string; enable: boolean }) => { /* ─── Equipped items list ─── */ const partOrder = [ - "武器", "上衣", "下装", "头肩", "腰带", "鞋", - "项链", "手镯", "戒指", "辅助装备", "魔法石", "耳环", + "武器", + "上衣", + "下装", + "头肩", + "腰带", + "鞋", + "项链", + "手镯", + "戒指", + "辅助装备", + "魔法石", + "耳环", ]; const equById = (id: string) => infoStore.equips.find((item) => item.id === id); @@ -201,16 +211,25 @@ const adaptation = (part: string) => { const rarityColor = (rarity: string): string => { switch (rarity) { - case "太初": return "text-[#5aff62]"; + case "太初": + return "text-[#5aff62]"; case "史诗": - case "智慧产物": return "text-[#fcb600]"; - case "神话": return "text-[#f8c63d]"; - case "神器": return "text-[#ef28c1]"; - case "稀有": return "text-[#9879da]"; - case "传说": return "text-[#ff7700]"; - case "勇者": return "text-[#ff6666]"; - case "高级": return "text-[#68d5ed]"; - default: return "text-[#fcb600]"; + case "智慧产物": + return "text-[#fcb600]"; + case "神话": + return "text-[#f8c63d]"; + case "神器": + return "text-[#ef28c1]"; + case "稀有": + return "text-[#9879da]"; + case "传说": + return "text-[#ff7700]"; + case "勇者": + return "text-[#ff6666]"; + case "高级": + return "text-[#68d5ed]"; + default: + return "text-[#fcb600]"; } }; @@ -300,10 +319,7 @@ const clearChangeSources = () => configStore.clearChangeSource(); {{ oathSuit.point }}点 -
+
diff --git a/frontendNew/src/pages/Dcalc/Character/Result/Index.vue b/frontendNew/src/pages/Dcalc/Character/Result/Index.vue index 6e050044..179fafe9 100644 --- a/frontendNew/src/pages/Dcalc/Character/Result/Index.vue +++ b/frontendNew/src/pages/Dcalc/Character/Result/Index.vue @@ -115,7 +115,7 @@ const hasVisibleResult = computed( diff --git a/frontendNew/src/pages/Dcalc/Character/Skill/components/SkillDetail/index.vue b/frontendNew/src/pages/Dcalc/Character/Skill/components/SkillDetail/index.vue index 327888cf..9090a9af 100644 --- a/frontendNew/src/pages/Dcalc/Character/Skill/components/SkillDetail/index.vue +++ b/frontendNew/src/pages/Dcalc/Character/Skill/components/SkillDetail/index.vue @@ -25,9 +25,7 @@ const basic = computed(() => { }, { label: "施放时间", - value: !info.attribute.castingTime - ? "瞬发" - : `${info.attribute.castingTime.toFixed(1)}秒`, + value: !info.attribute.castingTime ? "瞬发" : `${info.attribute.castingTime.toFixed(1)}秒`, }, { label: "魔法值", value: info.attribute.consumeMp }, { @@ -40,8 +38,7 @@ const basic = computed(() => { const descLines = computed(() => skillInfo.value?.descDetail.split("\n") ?? []); const detailLines = computed(() => { - const items = - skillInfo.value?.attribute.optionDesc?.split("\n").filter((item) => !!item) ?? []; + const items = skillInfo.value?.attribute.optionDesc?.split("\n").filter((item) => !!item) ?? []; return items.map((a) => { // highlight value placeholder prefix const beforeReplace = a.match(/^(.+?)\s*(\{value\d+\}.*)$/); @@ -53,8 +50,7 @@ const detailLines = computed(() => { matches.forEach((match) => { const key = match.replace(/[{}]/g, ""); if (/^value.+/.test(key)) { - const value = - skillInfo.value?.attribute.optionValue[key as `value${string}`] ?? "-"; + const value = skillInfo.value?.attribute.optionValue[key as `value${string}`] ?? "-"; a = a.replace( match, `${value}`, @@ -70,7 +66,10 @@ const hasEvolution = computed(() => (skillInfo.value?.evolution?.length ?? 0) >